[jira] [Updated] (FLINK-31755) ROW function can not work with RewriteIntersectAllRule
[ https://issues.apache.org/jira/browse/FLINK-31755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Flink Jira Bot updated FLINK-31755: --- Labels: auto-deprioritized-major pull-request-available (was: pull-request-available stale-major) Priority: Minor (was: Major) This issue was labeled "stale-major" 7 days ago and has not received any updates so it is being deprioritized. If this ticket is actually Major, please raise the priority and ask a committer to assign you the issue or revive the public discussion. > ROW function can not work with RewriteIntersectAllRule > -- > > Key: FLINK-31755 > URL: https://issues.apache.org/jira/browse/FLINK-31755 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Reporter: Aitozi >Priority: Minor > Labels: auto-deprioritized-major, pull-request-available > > Reproduce case: > {code:java} > create table row_sink ( > `b` ROW > ) with ( > 'connector' = 'values' > ) > util.verifyRelPlanInsert( > "INSERT INTO row_sink " + > "SELECT ROW(a, b) FROM complex_type_src intersect all " + > "SELECT ROW(c, d) FROM complex_type_src ") > {code} > It will fails with > {code:java} > Caused by: java.lang.IllegalArgumentException: Type mismatch: > rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > Difference: > EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL > at > org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) > at > org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) > at > org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) > ... 68 more > {code} > The reason is: > ROW function will generates the {{FULLY_QUALIFIED}} type. But after the > {{RewriteIntersectAllRule}} optimization, it will produce the > {{PEEK_FIELDS_NO_EXPAND}}. So the volcano planner complains with type > mismatch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-31755) ROW function can not work with RewriteIntersectAllRule
[ https://issues.apache.org/jira/browse/FLINK-31755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Flink Jira Bot updated FLINK-31755: --- Labels: pull-request-available stale-major (was: pull-request-available) I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Major but is unassigned and neither itself nor its Sub-Tasks have been updated for 60 days. I have gone ahead and added a "stale-major" to the issue". If this ticket is a Major, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized. > ROW function can not work with RewriteIntersectAllRule > -- > > Key: FLINK-31755 > URL: https://issues.apache.org/jira/browse/FLINK-31755 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Reporter: Aitozi >Priority: Major > Labels: pull-request-available, stale-major > > Reproduce case: > {code:java} > create table row_sink ( > `b` ROW > ) with ( > 'connector' = 'values' > ) > util.verifyRelPlanInsert( > "INSERT INTO row_sink " + > "SELECT ROW(a, b) FROM complex_type_src intersect all " + > "SELECT ROW(c, d) FROM complex_type_src ") > {code} > It will fails with > {code:java} > Caused by: java.lang.IllegalArgumentException: Type mismatch: > rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > Difference: > EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL > at > org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) > at > org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) > at > org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) > ... 68 more > {code} > The reason is: > ROW function will generates the {{FULLY_QUALIFIED}} type. But after the > {{RewriteIntersectAllRule}} optimization, it will produce the > {{PEEK_FIELDS_NO_EXPAND}}. So the volcano planner complains with type > mismatch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-31755) ROW function can not work with RewriteIntersectAllRule
[ https://issues.apache.org/jira/browse/FLINK-31755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated FLINK-31755: --- Labels: pull-request-available (was: ) > ROW function can not work with RewriteIntersectAllRule > -- > > Key: FLINK-31755 > URL: https://issues.apache.org/jira/browse/FLINK-31755 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Reporter: Aitozi >Priority: Major > Labels: pull-request-available > > Reproduce case: > {code:java} > create table row_sink ( > `b` ROW > ) with ( > 'connector' = 'values' > ) > util.verifyRelPlanInsert( > "INSERT INTO row_sink " + > "SELECT ROW(a, b) FROM complex_type_src intersect all " + > "SELECT ROW(c, d) FROM complex_type_src ") > {code} > It will fails with > {code:java} > Caused by: java.lang.IllegalArgumentException: Type mismatch: > rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > Difference: > EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL > at > org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) > at > org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) > at > org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) > ... 68 more > {code} > The reason is: > ROW function will generates the {{FULLY_QUALIFIED}} type. But after the > {{RewriteIntersectAllRule}} optimization, it will produce the > {{PEEK_FIELDS_NO_EXPAND}}. So the volcano planner complains with type > mismatch. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-31755) ROW function can not work with RewriteIntersectAllRule
[ https://issues.apache.org/jira/browse/FLINK-31755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aitozi updated FLINK-31755: --- Description: Reproduce case: {code:java} create table row_sink ( `b` ROW ) with ( 'connector' = 'values' ) util.verifyRelPlanInsert( "INSERT INTO row_sink " + "SELECT ROW(a, b) FROM complex_type_src intersect all " + "SELECT ROW(c, d) FROM complex_type_src ") {code} It will fails with {code:java} Caused by: java.lang.IllegalArgumentException: Type mismatch: rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL Difference: EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) at org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) ... 68 more {code} The reason is: ROW function will generates the {{FULLY_QUALIFIED}} type. But after the {{RewriteIntersectAllRule}} optimization, it will produce the {{PEEK_FIELDS_NO_EXPAND}}. So the volcano planner complains with type mismatch. was: Reproduce case: {code:java} create table row_sink ( `b` ROW ) with ( 'connector' = 'values' ) util.verifyRelPlanInsert( "INSERT INTO row_sink " + "SELECT ROW(a, b) FROM complex_type_src intersect all " + "SELECT ROW(c, d) FROM complex_type_src ") {code} It will fails with {code:java} Caused by: java.lang.IllegalArgumentException: Type mismatch: rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL Difference: EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL at org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) at org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) at org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) ... 68 more {code} The reason is: ROW function will generates the {{FULLY_QUALIFIED}} type. But after the {{RewriteIntersectAllRule}} optimization, it will produce the {{PEEK_FIELDS_NO_EXPAND}}. So the volcan planner complains with type mismatch. > ROW function can not work with RewriteIntersectAllRule > -- > > Key: FLINK-31755 > URL: https://issues.apache.org/jira/browse/FLINK-31755 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Reporter: Aitozi >Priority: Major > > Reproduce case: > {code:java} > create table row_sink ( > `b` ROW > ) with ( > 'connector' = 'values' > ) > util.verifyRelPlanInsert( > "INSERT INTO row_sink " + > "SELECT ROW(a, b) FROM complex_type_src intersect all " + > "SELECT ROW(c, d) FROM complex_type_src ") > {code} > It will fails with > {code:java} > Caused by: java.lang.IllegalArgumentException: Type mismatch: > rel rowtype: RecordType(RecordType:peek_no_expand(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > equiv rowtype: RecordType(RecordType(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL EXPR$0) NOT NULL > Difference: > EXPR$0: RecordType:peek_no_expand(VARCHAR(2147483647) CHARACTER SET > "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL -> RecordType(VARCHAR(2147483647) > CHARACTER SET "UTF-16LE" EXPR$0, INTEGER EXPR$1) NOT NULL > at > org.apache.calcite.plan.volcano.VolcanoPlanner.register(VolcanoPlanner.java:592) > at > org.apache.calcite.plan.volcano.VolcanoPlanner.ensureRegistered(VolcanoPlanner.java:613) > at > org.apache.calcite.plan.volcano.VolcanoRuleCall.transformTo(VolcanoRuleCall.java:144) > ... 68 more > {code} > The reason is: > ROW function will generates the {{FULLY_QUALIFIED}} type. But after the > {{RewriteIntersectAllRule}} optimization, it will produce the > {{PEEK_FIELDS_NO_EXPAND}}. So the volcano planner complains with type > mismatch. -- This message was sent by Atlassian Jira (v8.20.10#820010)