== Abstract Syntax Tree ==
LogicalSink(table=[fluss.nexmark.output_b40bdedd4e5e476a8390bb7e07c84ad0], fields=[auction, bidder, price, itemName, dateTime, seller])
+- LogicalProject(auction=[$0], bidder=[$1], price=[$2], itemName=[$16], dateTime=[$20], seller=[$22])
   +- LogicalJoin(condition=[=($22, $1)], joinType=[inner])
      :- LogicalJoin(condition=[=($7, $1)], joinType=[inner])
      :  :- LogicalProject(auction=[$3.auction], bidder=[$3.bidder], price=[$3.price], channel=[$3.channel], url=[$3.url], dateTime=[$5], extra=[$3.extra])
      :  :  +- LogicalFilter(condition=[=($0, 2)])
      :  :     +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[$5])
      :  :        +- LogicalWatermarkAssigner(rowtime=[rowtime], watermark=[-($5, 4000:INTERVAL SECOND)])
      :  :           +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[TO_TIMESTAMP_LTZ($4, 3)])
      :  :              +- LogicalTableScan(table=[[fluss, nexmark, events]])
      :  +- LogicalProject(id=[$1.id], name=[$1.name], emailAddress=[$1.emailAddress], creditCard=[$1.creditCard], city=[$1.city], state=[$1.state], dateTime=[$5], extra=[$1.extra])
      :     +- LogicalFilter(condition=[=($0, 0)])
      :        +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[$5])
      :           +- LogicalWatermarkAssigner(rowtime=[rowtime], watermark=[-($5, 4000:INTERVAL SECOND)])
      :              +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[TO_TIMESTAMP_LTZ($4, 3)])
      :                 +- LogicalTableScan(table=[[fluss, nexmark, events]])
      +- LogicalProject(id=[$2.id], itemName=[$2.itemName], description=[$2.description], initialBid=[$2.initialBid], reserve=[$2.reserve], dateTime=[$5], expires=[TO_TIMESTAMP_LTZ($2.expires, 3)], seller=[$2.seller], category=[$2.category], extra=[$2.extra])
         +- LogicalFilter(condition=[=($0, 1)])
            +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[$5])
               +- LogicalWatermarkAssigner(rowtime=[rowtime], watermark=[-($5, 4000:INTERVAL SECOND)])
                  +- LogicalProject(event_type=[$0], person=[$1], auction=[$2], bid=[$3], dateTime=[$4], rowtime=[TO_TIMESTAMP_LTZ($4, 3)])
                     +- LogicalTableScan(table=[[fluss, nexmark, events]])

== Optimized Physical Plan ==
NativeFlussSink(reuseBarrier=[3146])
+- NativeColumnarUpdatingJoin(reuseBarrier=[3145], leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :- NativeColumnarExchange(reuseBarrier=[3140])
   :  +- NativeCalc(reuseBarrier=[3139])
   :     +- NativeColumnarUpdatingJoin(reuseBarrier=[3138], leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :        :- NativeColumnarExchange(reuseBarrier=[3122])
   :        :  +- NativeCalc(reuseBarrier=[3121])
   :        :     +- NativeCalc(reuseBarrier=[3120])
   :        :        +- NativeShare(consumers=[3], shareToken=[3118])
   :        :           +- NativeFlussSource(table=[nexmark.events], shareToken=[3118])
   :        +- NativeColumnarExchange(reuseBarrier=[3137])
   :           +- NativeCalc(reuseBarrier=[3136])
   :              +- NativeCalc(reuseBarrier=[3135])
   :                 +- NativeShare(consumers=[3], shareToken=[3118])
   :                    +- NativeFlussSource(table=[nexmark.events], shareToken=[3118])
   +- NativeColumnarExchange(reuseBarrier=[3144])
      +- NativeCalc(reuseBarrier=[3143])
         +- NativeCalc(reuseBarrier=[3142])
            +- NativeShare(consumers=[3], shareToken=[3118])
               +- NativeFlussSource(table=[nexmark.events], shareToken=[3118])

== Optimized Execution Plan ==
NativeFlussSink
+- NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :- NativeColumnarExchange
   :  +- NativeCalc
   :     +- NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :        :- NativeColumnarExchange
   :        :  +- NativeCalc
   :        :     +- NativeCalc
   :        :        +- NativeShare(consumers=[3])(reuse_id=[1])
   :        :           +- NativeFlussSource(table=[nexmark.events])
   :        +- NativeColumnarExchange
   :           +- NativeCalc
   :              +- NativeCalc
   :                 +- Reused(reference_id=[1])
   +- NativeColumnarExchange
      +- NativeCalc
         +- NativeCalc
            +- Reused(reference_id=[1])

== Physical Execution Plan ==
{
  "nodes" : [ {
    "id" : 4437,
    "type" : "Source: native-fluss-source",
    "pact" : "Data Source",
    "contents" : "Source: native-fluss-source",
    "parallelism" : 4
  }, {
    "id" : 4438,
    "type" : "NativeShareExecNode[2856]",
    "pact" : "Operator",
    "contents" : "[2856]:NativeShare(consumers=[3])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4437,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4439,
    "type" : "NativeCalcExecNode[2857]",
    "pact" : "Operator",
    "contents" : "[2857]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4438,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4440,
    "type" : "NativeCalcExecNode[2858]",
    "pact" : "Operator",
    "contents" : "[2858]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4439,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4441,
    "type" : "NativeColumnarExchangeExecNode[2859]",
    "pact" : "Operator",
    "contents" : "[2859]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4440,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4443,
    "type" : "NativeCalcExecNode[2860]",
    "pact" : "Operator",
    "contents" : "[2860]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4438,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4444,
    "type" : "NativeCalcExecNode[2861]",
    "pact" : "Operator",
    "contents" : "[2861]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4443,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4445,
    "type" : "NativeColumnarExchangeExecNode[2862]",
    "pact" : "Operator",
    "contents" : "[2862]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4444,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4447,
    "type" : "NativeColumnarUpdatingJoinExecNode[2863]",
    "pact" : "Operator",
    "contents" : "[2863]:NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4441,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    }, {
      "id" : 4445,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    } ]
  }, {
    "id" : 4448,
    "type" : "NativeCalcExecNode[2864]",
    "pact" : "Operator",
    "contents" : "[2864]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4447,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4449,
    "type" : "NativeColumnarExchangeExecNode[2865]",
    "pact" : "Operator",
    "contents" : "[2865]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4448,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4451,
    "type" : "NativeCalcExecNode[2866]",
    "pact" : "Operator",
    "contents" : "[2866]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4438,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4452,
    "type" : "NativeCalcExecNode[2867]",
    "pact" : "Operator",
    "contents" : "[2867]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4451,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4453,
    "type" : "NativeColumnarExchangeExecNode[2868]",
    "pact" : "Operator",
    "contents" : "[2868]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4452,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4455,
    "type" : "NativeColumnarUpdatingJoinExecNode[2869]",
    "pact" : "Operator",
    "contents" : "[2869]:NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4449,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    }, {
      "id" : 4453,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    } ]
  }, {
    "id" : 4461,
    "type" : "native-fluss-append-sink: Writer",
    "pact" : "Operator",
    "contents" : "native-fluss-append-sink: Writer",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4455,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  } ]
}