== Abstract Syntax Tree ==
LogicalSink(table=[fluss.nexmark.output_9a33e0737abb4dd5936716a948a1e192], 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=[3254])
+- NativeColumnarUpdatingJoin(reuseBarrier=[3253], leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :- NativeColumnarExchange(reuseBarrier=[3247])
   :  +- NativeCalc(reuseBarrier=[3246])
   :     +- NativeColumnarUpdatingJoin(reuseBarrier=[3245], leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])
   :        :- NativeColumnarExchange(reuseBarrier=[3226])
   :        :  +- NativeCalc(reuseBarrier=[3225])
   :        :     +- NativeMiniBatchAssigner(reuseBarrier=[3224])
   :        :        +- NativeCalc(reuseBarrier=[3223])
   :        :           +- NativeShare(consumers=[3], shareToken=[3221])
   :        :              +- NativeFlussSource(table=[nexmark.events], shareToken=[3221])
   :        +- NativeColumnarExchange(reuseBarrier=[3244])
   :           +- NativeCalc(reuseBarrier=[3243])
   :              +- NativeMiniBatchAssigner(reuseBarrier=[3242])
   :                 +- NativeCalc(reuseBarrier=[3241])
   :                    +- NativeShare(consumers=[3], shareToken=[3221])
   :                       +- NativeFlussSource(table=[nexmark.events], shareToken=[3221])
   +- NativeColumnarExchange(reuseBarrier=[3252])
      +- NativeCalc(reuseBarrier=[3251])
         +- NativeMiniBatchAssigner(reuseBarrier=[3250])
            +- NativeCalc(reuseBarrier=[3249])
               +- NativeShare(consumers=[3], shareToken=[3221])
                  +- NativeFlussSource(table=[nexmark.events], shareToken=[3221])

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

== Physical Execution Plan ==
{
  "nodes" : [ {
    "id" : 4597,
    "type" : "Source: native-fluss-source",
    "pact" : "Data Source",
    "contents" : "Source: native-fluss-source",
    "parallelism" : 4
  }, {
    "id" : 4598,
    "type" : "NativeShareExecNode[3140]",
    "pact" : "Operator",
    "contents" : "[3140]:NativeShare(consumers=[3])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4597,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4599,
    "type" : "NativeCalcExecNode[3141]",
    "pact" : "Operator",
    "contents" : "[3141]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4598,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4600,
    "type" : "NativeMiniBatchAssignerExecNode[3142]",
    "pact" : "Operator",
    "contents" : "[3142]:NativeMiniBatchAssigner",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4599,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4601,
    "type" : "NativeCalcExecNode[3143]",
    "pact" : "Operator",
    "contents" : "[3143]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4600,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4602,
    "type" : "NativeColumnarExchangeExecNode[3144]",
    "pact" : "Operator",
    "contents" : "[3144]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4601,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4604,
    "type" : "NativeCalcExecNode[3145]",
    "pact" : "Operator",
    "contents" : "[3145]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4598,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4605,
    "type" : "NativeMiniBatchAssignerExecNode[3146]",
    "pact" : "Operator",
    "contents" : "[3146]:NativeMiniBatchAssigner",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4604,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4606,
    "type" : "NativeCalcExecNode[3147]",
    "pact" : "Operator",
    "contents" : "[3147]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4605,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4607,
    "type" : "NativeColumnarExchangeExecNode[3148]",
    "pact" : "Operator",
    "contents" : "[3148]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4606,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4609,
    "type" : "NativeColumnarUpdatingJoinExecNode[3149]",
    "pact" : "Operator",
    "contents" : "[3149]:NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4602,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    }, {
      "id" : 4607,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    } ]
  }, {
    "id" : 4610,
    "type" : "NativeCalcExecNode[3150]",
    "pact" : "Operator",
    "contents" : "[3150]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4609,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4611,
    "type" : "NativeColumnarExchangeExecNode[3151]",
    "pact" : "Operator",
    "contents" : "[3151]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4610,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4613,
    "type" : "NativeCalcExecNode[3152]",
    "pact" : "Operator",
    "contents" : "[3152]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4598,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4614,
    "type" : "NativeMiniBatchAssignerExecNode[3153]",
    "pact" : "Operator",
    "contents" : "[3153]:NativeMiniBatchAssigner",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4613,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4615,
    "type" : "NativeCalcExecNode[3154]",
    "pact" : "Operator",
    "contents" : "[3154]:NativeCalc",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4614,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4616,
    "type" : "NativeColumnarExchangeExecNode[3155]",
    "pact" : "Operator",
    "contents" : "[3155]:NativeColumnarExchange",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4615,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 4618,
    "type" : "NativeColumnarUpdatingJoinExecNode[3156]",
    "pact" : "Operator",
    "contents" : "[3156]:NativeColumnarUpdatingJoin(leftJoinKeyUnique=[false], rightJoinKeyUnique=[false])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4611,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    }, {
      "id" : 4616,
      "ship_strategy" : "columnar-key-group",
      "side" : "second"
    } ]
  }, {
    "id" : 4624,
    "type" : "native-fluss-append-sink: Writer",
    "pact" : "Operator",
    "contents" : "native-fluss-append-sink: Writer",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 4618,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  } ]
}