== Abstract Syntax Tree ==
LogicalSink(table=[fluss.nexmark.output_59cc62c920b542bfb61639051b3303e5], fields=[auction, price])
+- LogicalProject(auction=[$0], price=[$2])
   +- LogicalFilter(condition=[=(MOD($0, 123), 0)])
      +- 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]])

== Optimized Physical Plan ==
Sink(table=[fluss.nexmark.output_59cc62c920b542bfb61639051b3303e5], fields=[auction, price])
+- Calc(select=[bid.auction AS auction, bid.price AS price], where=[AND(=(event_type, 2), =(MOD(bid.auction, 123), 0))])
   +- TableSourceScan(table=[[fluss, nexmark, events, project=[event_type, bid, dateTime], watermark=[-(TO_TIMESTAMP_LTZ(dateTime, 3), 4000:INTERVAL SECOND)], watermarkEmitStrategy=[on-periodic], filter=[]]], fields=[event_type, bid, dateTime])

== Optimized Execution Plan ==
Sink(table=[fluss.nexmark.output_59cc62c920b542bfb61639051b3303e5], fields=[auction, price])
+- Calc(select=[bid.auction AS auction, bid.price AS price], where=[((event_type = 2) AND (MOD(bid.auction, 123) = 0))])
   +- TableSourceScan(table=[[fluss, nexmark, events, project=[event_type, bid, dateTime], watermark=[-(TO_TIMESTAMP_LTZ(dateTime, 3), 4000:INTERVAL SECOND)], watermarkEmitStrategy=[on-periodic], filter=[]]], fields=[event_type, bid, dateTime])

== Physical Execution Plan ==
{
  "nodes" : [ {
    "id" : 287,
    "type" : "Source: events[195]",
    "pact" : "Data Source",
    "contents" : "[195]:TableSourceScan(table=[[fluss, nexmark, events, project=[event_type, bid, dateTime], watermark=[-(TO_TIMESTAMP_LTZ(dateTime, 3), 4000:INTERVAL SECOND)], watermarkEmitStrategy=[on-periodic], filter=[]]], fields=[event_type, bid, dateTime])",
    "parallelism" : 4
  }, {
    "id" : 288,
    "type" : "Calc[196]",
    "pact" : "Operator",
    "contents" : "[196]:Calc(select=[bid.auction AS auction, bid.price AS price], where=[((event_type = 2) AND (MOD(bid.auction, 123) = 0))])",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 287,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  }, {
    "id" : 290,
    "type" : "Sink(nexmark.output_59cc62c920b542bfb61639051b3303e5): Writer",
    "pact" : "Operator",
    "contents" : "Sink(nexmark.output_59cc62c920b542bfb61639051b3303e5): Writer",
    "parallelism" : 4,
    "predecessors" : [ {
      "id" : 288,
      "ship_strategy" : "FORWARD",
      "side" : "second"
    } ]
  } ]
}