bvarghese1 commented on code in PR #29644:
URL: https://github.com/apache/flink/pull/29644#discussion_r4403782511
##########
flink-table/flink-table-planner/src/test/resources/restore-tests/batch-exec-runtime-filter_1/runtime-filter/plan/runtime-filter.json:
##########
@@ -0,0 +1,492 @@
+{
+ "flinkVersion" : "2.5",
+ "nodes" : [ {
+ "id" : 1,
+ "type" : "batch-exec-table-source-scan_1",
+ "scanTableSource" : {
+ "table" : {
+ "identifier" : "`default_catalog`.`default_database`.`dim_t`",
+ "resolvedTable" : {
+ "schema" : {
+ "columns" : [ {
+ "name" : "x",
+ "dataType" : "INT"
+ }, {
+ "name" : "y",
+ "dataType" : "BIGINT"
+ } ]
+ }
+ }
+ },
+ "abilities" : [ {
+ "type" : "FilterPushDown",
+ "predicates" : [ ]
+ } ]
+ },
+ "outputType" : "ROW<`x` INT, `y` BIGINT>",
+ "description" : "TableSourceScan(table=[[default_catalog,
default_database, dim_t, filter=[]]], fields=[x, y])",
+ "dynamicFilteringDataListenerID" : "732a7df2-be6f-450c-ae83-afdb225c7fcc"
+ }, {
+ "id" : 2,
+ "type" : "batch-exec-calc_1",
+ "projection" : [ {
+ "kind" : "INPUT_REF",
+ "inputIndex" : 0,
+ "type" : "INT"
+ }, {
+ "kind" : "INPUT_REF",
+ "inputIndex" : 1,
+ "type" : "BIGINT"
+ } ],
+ "condition" : {
+ "kind" : "CALL",
+ "syntax" : "BINARY",
+ "internalName" : "$<$1",
+ "operands" : [ {
+ "kind" : "INPUT_REF",
+ "inputIndex" : 1,
+ "type" : "BIGINT"
+ }, {
+ "kind" : "LITERAL",
+ "value" : 4,
+ "type" : "INT NOT NULL"
+ } ],
+ "type" : "BOOLEAN"
+ },
+ "inputProperties" : [ {
+ "requiredDistribution" : {
+ "type" : "UNKNOWN"
+ },
+ "damBehavior" : "PIPELINED",
+ "priority" : 0
+ } ],
+ "outputType" : "ROW<`x` INT, `y` BIGINT>",
+ "description" : "Calc(select=[x, y], where=[(y < 4)])"
+ }, {
+ "id" : 3,
+ "type" : "batch-exec-hash-aggregate_1",
+ "configuration" : {
+ "table.exec.resource.hash-agg.memory" : "128 mb",
+ "table.exec.sort.max-num-file-handles" : "128",
+ "table.exec.spill-compression.block-size" : "64 kb",
+ "table.exec.spill-compression.enabled" : "true"
+ },
+ "grouping" : [ 0 ],
+ "auxGrouping" : [ ],
+ "aggCalls" : [ {
+ "name" : "s",
+ "internalName" : "$SUM$1",
+ "argList" : [ 1 ],
+ "filterArg" : -1,
+ "distinct" : false,
+ "approximate" : false,
+ "ignoreNulls" : false,
+ "type" : "BIGINT"
+ } ],
+ "aggInputRowType" : "ROW<`x` INT, `y` BIGINT>",
+ "isMerge" : false,
+ "isFinal" : false,
+ "supportAdaptiveLocalHashAgg" : true,
+ "inputProperties" : [ {
+ "requiredDistribution" : {
+ "type" : "UNKNOWN"
+ },
+ "damBehavior" : "PIPELINED",
+ "priority" : 0
+ } ],
+ "outputType" : "ROW<`x` INT, `sum$0` BIGINT>",
+ "description" : "LocalHashAggregate(groupBy=[x], select=[x, Partial_SUM(y)
AS sum$0])"
+ }, {
+ "id" : 4,
+ "type" : "batch-exec-local-runtime-filter-builder_1",
+ "inputProperties" : [ {
+ "requiredDistribution" : {
+ "type" : "UNKNOWN"
+ },
+ "damBehavior" : "END_INPUT",
+ "priority" : 0
+ } ],
+ "outputType" : "ROW<`actualRowCount` INT, `filter` VARBINARY(1)>",
+ "description" : "LocalRuntimeFilterBuilder(select=[x],
estimatedRowCount=[4758129], maxRowCount=[65536000])",
+ "buildIndices" : [ 0 ],
+ "estimatedRowCount" : 4758129,
Review Comment:
See the comment here -
https://github.com/apache/flink/pull/29644/changes#diff-6a087125b599479d1ab8a74e09122e19c91a5f7ff319a7b3c8ba87a54359f467R38
Without stats, row counts are estimated at 10^8 by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]