[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Flink Jira Bot updated FLINK-12116: --- Labels: auto-deprioritized-major (was: stale-major) Priority: Minor (was: Major) This issue was labeled "stale-major" 7 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. > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Legacy Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Priority: Minor > Labels: auto-deprioritized-major > Time Spent: 10m > Remaining Estimate: 0h > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] godfrey he updated FLINK-12116: --- Component/s: (was: Table SQL / Planner) Table SQL / Legacy Planner > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Legacy Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Priority: Major > Labels: stale-major > Time Spent: 10m > Remaining Estimate: 0h > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Flink Jira Bot updated FLINK-12116: --- Labels: stale-major (was: ) > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Priority: Major > Labels: stale-major > Time Spent: 10m > Remaining Estimate: 0h > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xingcan Cui updated FLINK-12116: Labels: (was: pull-request-available) > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Assignee: vinoyang >Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated FLINK-12116: --- Labels: pull-request-available (was: ) > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Assignee: vinoyang >Priority: Major > Labels: pull-request-available > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (FLINK-12116) Args autocast will cause exception for plan transformation in TableAPI
[ https://issues.apache.org/jira/browse/FLINK-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xingcan Cui updated FLINK-12116: Description: In tableAPI, the automatic typecast for arguments may break their initial structures, which makes {{TreeNode.makeCopy()}} fail. Take the {{ConcatWs}} function as an example. It requires a string {{Expression}} sequence for the second parameter of its constructor. If we provide some {{Expressions}} with other types, the planner will try to cast them automatically. However, during this process, the arguments will be incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause {{java.lang.IllegalArgumentException: wrong number of arguments}} for {{Constructor.newInstance()}}. As a workaround, we can cast these arguments manually. was: In tableAPI, the automatic typecast for arguments may break their initial structures, which makes {{TreeNode.makeCopy()}} fail. Take the {{ConcatWs}} function as an example. It requires a string {{Expression}} sequence for the second parameter of its constructor. If we provide some {{Expressions}} with other types, the planner will try to cast them automatically. However, during this process, the arguments will be incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause {{java.lang.IllegalArgumentException: wrong number of arguments}}. As a workaround, we can cast these arguments manually. > Args autocast will cause exception for plan transformation in TableAPI > -- > > Key: FLINK-12116 > URL: https://issues.apache.org/jira/browse/FLINK-12116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner >Affects Versions: 1.6.4, 1.7.2 >Reporter: Xingcan Cui >Priority: Major > > In tableAPI, the automatic typecast for arguments may break their initial > structures, which makes {{TreeNode.makeCopy()}} fail. > Take the {{ConcatWs}} function as an example. It requires a string > {{Expression}} sequence for the second parameter of its constructor. If we > provide some {{Expressions}} with other types, the planner will try to cast > them automatically. However, during this process, the arguments will be > incorrectly unwrapped (e.g., {{[f1, f2]}} will be unwrapped to two > expressions {{f1.cast(String)}} and {{f2.cast(String)}}) which will cause > {{java.lang.IllegalArgumentException: wrong number of arguments}} for > {{Constructor.newInstance()}}. > As a workaround, we can cast these arguments manually. -- This message was sent by Atlassian JIRA (v7.6.3#76005)