[jira] [Commented] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
[ https://issues.apache.org/jira/browse/CALCITE-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17118445#comment-17118445 ] groobyming commented on CALCITE-4014: - Thanks [~julianhyde] > calcite convert(column using utf8mb4) throws exception > -- > > Key: CALCITE-4014 > URL: https://issues.apache.org/jira/browse/CALCITE-4014 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Attachments: image-2020-05-20-17-00-28-611.png > > > Hello everyone, I found that when performing the following sql > verification, I will be prompted that the UTF8MB4 field cannot be found in > the table, but after reading the source code calcite is built-in to support > this convert function, is it not fully implemented yet? > > SQL is as follows: > select convert(name using utf8mb4) from test b where name = '4' > > Error Message: > !image-2020-05-20-17-00-28-611.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
[ https://issues.apache.org/jira/browse/CALCITE-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17113884#comment-17113884 ] groobyming commented on CALCITE-4014: - Thanks [~danny0405] :) > calcite convert(column using utf8mb4) throws exception > -- > > Key: CALCITE-4014 > URL: https://issues.apache.org/jira/browse/CALCITE-4014 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Attachments: image-2020-05-20-17-00-28-611.png > > > Hello everyone, I found that when performing the following sql > verification, I will be prompted that the UTF8MB4 field cannot be found in > the table, but after reading the source code calcite is built-in to support > this convert function, is it not fully implemented yet? > > SQL is as follows: > select convert(name using utf8mb4) from test b where name = '4' > > Error Message: > !image-2020-05-20-17-00-28-611.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
[ https://issues.apache.org/jira/browse/CALCITE-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming updated CALCITE-4014: Description: Hello everyone, I found that when performing the following sql verification, I will be prompted that the UTF8MB4 field cannot be found in the table, but after reading the source code calcite is built-in to support this convert function, is it not fully implemented yet? SQL is as follows: select convert(name using utf8mb4) from test b where name = '4' Error Message: !image-2020-05-20-17-00-28-611.png! was: Hello everyone, I found that when performing the following sql verification, I will be prompted that the UTF8MB4 field cannot be found in the table, but after reading the source code calcite is built-in to support this convert function, is it not fully implemented yet? SQL is as follows: select convert(name using utf8mb4) from test b where name = '4' Error Message: !image-2020-05-20-17-00-28-611.png! > calcite convert(column using utf8mb4) throws exception > -- > > Key: CALCITE-4014 > URL: https://issues.apache.org/jira/browse/CALCITE-4014 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Attachments: image-2020-05-20-17-00-28-611.png > > > Hello everyone, I found that when performing the following sql > verification, I will be prompted that the UTF8MB4 field cannot be found in > the table, but after reading the source code calcite is built-in to support > this convert function, is it not fully implemented yet? > > SQL is as follows: > select convert(name using utf8mb4) from test b where name = '4' > > Error Message: > !image-2020-05-20-17-00-28-611.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
[ https://issues.apache.org/jira/browse/CALCITE-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming updated CALCITE-4014: Attachment: image-2020-05-20-17-00-28-611.png > calcite convert(column using utf8mb4) throws exception > -- > > Key: CALCITE-4014 > URL: https://issues.apache.org/jira/browse/CALCITE-4014 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Attachments: image-2020-05-20-17-00-28-611.png > > > Sql: > select convert(name using utf8mb4) from test b where name = '4' > > errors: > org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to > line 1, column 33: Column 'UTF8MB4' not found in any > tableorg.apache.calcite.runtime.CalciteContextException: From line 1, column > 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at > org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) > at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:834) at > org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:819) at > org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(SqlValidatorImpl.java:4870) > at > org.apache.calcite.sql.validate.DelegatingScope.fullyQualify(DelegatingScope.java:259) > at > org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5762) > at > org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5747) > at org.apache.calcite.sql.SqlIdentifier.accept(SqlIdentifier.java:317) at > org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:134) > at > org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:101) > at org.apache.calcite.sql.SqlOperator.acceptCall(SqlOperator.java:869) at > org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visitScoped(SqlValidatorImpl.java:5780) > at > org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:50) > at > org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:33) > at org.apache.calcite.sql.SqlCall.accept(SqlCall.java:139) at > org.apache.calcite.sql.validate.SqlValidatorImpl.expand(SqlValidatorImpl.java:5354) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(SqlValidatorImpl.java:450) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(SqlValidatorImpl.java:4107) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:3395) > at > org.apache.calcite.sql.validate.SelectNamespace.validateImpl(SelectNamespace.java:60) > at > org.apache.calcite.sql.validate.AbstractNamespace.validate(AbstractNamespace.java:84) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace(SqlValidatorImpl.java:1008) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:968) > at org.apache.calcite.sql.SqlSelect.validate(SqlSelect.java:216) at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:943) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:650) > at > com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:144) > at > com.tencent.blueking.calcite.udf.FunctionTestTwo.main(FunctionTestTwo.java:87)Caused > by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'UTF8MB4' > not found in any table at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at > org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) > at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:572) ... 27 > moreException in thread "main" java.lang.RuntimeException: > org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to > line 1, column 33: Column 'UTF8MB4' not found in any table at > com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:173) > at >
[jira] [Updated] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
[ https://issues.apache.org/jira/browse/CALCITE-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming updated CALCITE-4014: Description: Hello everyone, I found that when performing the following sql verification, I will be prompted that the UTF8MB4 field cannot be found in the table, but after reading the source code calcite is built-in to support this convert function, is it not fully implemented yet? SQL is as follows: select convert(name using utf8mb4) from test b where name = '4' Error Message: !image-2020-05-20-17-00-28-611.png! was: Sql: select convert(name using utf8mb4) from test b where name = '4' errors: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any tableorg.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:834) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:819) at org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(SqlValidatorImpl.java:4870) at org.apache.calcite.sql.validate.DelegatingScope.fullyQualify(DelegatingScope.java:259) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5762) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5747) at org.apache.calcite.sql.SqlIdentifier.accept(SqlIdentifier.java:317) at org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:134) at org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:101) at org.apache.calcite.sql.SqlOperator.acceptCall(SqlOperator.java:869) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visitScoped(SqlValidatorImpl.java:5780) at org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:50) at org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:33) at org.apache.calcite.sql.SqlCall.accept(SqlCall.java:139) at org.apache.calcite.sql.validate.SqlValidatorImpl.expand(SqlValidatorImpl.java:5354) at org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(SqlValidatorImpl.java:450) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(SqlValidatorImpl.java:4107) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:3395) at org.apache.calcite.sql.validate.SelectNamespace.validateImpl(SelectNamespace.java:60) at org.apache.calcite.sql.validate.AbstractNamespace.validate(AbstractNamespace.java:84) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace(SqlValidatorImpl.java:1008) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:968) at org.apache.calcite.sql.SqlSelect.validate(SqlSelect.java:216) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:943) at org.apache.calcite.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:650) at com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:144) at com.tencent.blueking.calcite.udf.FunctionTestTwo.main(FunctionTestTwo.java:87)Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'UTF8MB4' not found in any table at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:572) ... 27 moreException in thread "main" java.lang.RuntimeException: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:173) at com.tencent.blueking.calcite.udf.FunctionTestTwo.main(FunctionTestTwo.java:87)Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at
[jira] [Created] (CALCITE-4014) calcite convert(column using utf8mb4) throws exception
groobyming created CALCITE-4014: --- Summary: calcite convert(column using utf8mb4) throws exception Key: CALCITE-4014 URL: https://issues.apache.org/jira/browse/CALCITE-4014 Project: Calcite Issue Type: Bug Components: core Affects Versions: 1.21.0 Reporter: groobyming Sql: select convert(name using utf8mb4) from test b where name = '4' errors: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any tableorg.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:834) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:819) at org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(SqlValidatorImpl.java:4870) at org.apache.calcite.sql.validate.DelegatingScope.fullyQualify(DelegatingScope.java:259) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5762) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit(SqlValidatorImpl.java:5747) at org.apache.calcite.sql.SqlIdentifier.accept(SqlIdentifier.java:317) at org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:134) at org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild(SqlShuttle.java:101) at org.apache.calcite.sql.SqlOperator.acceptCall(SqlOperator.java:869) at org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visitScoped(SqlValidatorImpl.java:5780) at org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:50) at org.apache.calcite.sql.validate.SqlScopedShuttle.visit(SqlScopedShuttle.java:33) at org.apache.calcite.sql.SqlCall.accept(SqlCall.java:139) at org.apache.calcite.sql.validate.SqlValidatorImpl.expand(SqlValidatorImpl.java:5354) at org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(SqlValidatorImpl.java:450) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(SqlValidatorImpl.java:4107) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:3395) at org.apache.calcite.sql.validate.SelectNamespace.validateImpl(SelectNamespace.java:60) at org.apache.calcite.sql.validate.AbstractNamespace.validate(AbstractNamespace.java:84) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace(SqlValidatorImpl.java:1008) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:968) at org.apache.calcite.sql.SqlSelect.validate(SqlSelect.java:216) at org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:943) at org.apache.calcite.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:650) at com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:144) at com.tencent.blueking.calcite.udf.FunctionTestTwo.main(FunctionTestTwo.java:87)Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'UTF8MB4' not found in any table at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:463) at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:572) ... 27 moreException in thread "main" java.lang.RuntimeException: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at com.tencent.blueking.calcite.udf.FunctionTestTwo.sqlToRelNode(FunctionTestTwo.java:173) at com.tencent.blueking.calcite.udf.FunctionTestTwo.main(FunctionTestTwo.java:87)Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1, column 27 to line 1, column 33: Column 'UTF8MB4' not found in any table at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at
[jira] [Commented] (CALCITE-3545) How to change calcite syntax
[ https://issues.apache.org/jira/browse/CALCITE-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16995392#comment-16995392 ] groobyming commented on CALCITE-3545: - Thanks > How to change calcite syntax > > > Key: CALCITE-3545 > URL: https://issues.apache.org/jira/browse/CALCITE-3545 > Project: Calcite > Issue Type: Test > Components: core >Reporter: groobyming >Priority: Trivial > > How to change calcite syntax, such as allowing table names to start with > numbers -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (CALCITE-3545) How to change calcite syntax
[ https://issues.apache.org/jira/browse/CALCITE-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16984357#comment-16984357 ] groobyming edited comment on CALCITE-3545 at 11/28/19 11:57 AM: Thanks for your reply [~zabetak] It works by using backticks or double quotes around the table name, but if there are no backquotes, should I modify Parser.jj? By the way ,where is the 'dev list'? Thanks again! was (Author: groobyming): Thanks for your reply [~zabetak] It works by using backticks or double quotes around the table name, but if there are no backquotes, should I modify Parser.jj? > How to change calcite syntax > > > Key: CALCITE-3545 > URL: https://issues.apache.org/jira/browse/CALCITE-3545 > Project: Calcite > Issue Type: Test > Components: core >Reporter: groobyming >Priority: Trivial > > How to change calcite syntax, such as allowing table names to start with > numbers -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-3545) How to change calcite syntax
[ https://issues.apache.org/jira/browse/CALCITE-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16984357#comment-16984357 ] groobyming commented on CALCITE-3545: - Thanks for your reply [~zabetak] It works by using backticks or double quotes around the table name, but if there are no backquotes, should I modify Parser.jj? > How to change calcite syntax > > > Key: CALCITE-3545 > URL: https://issues.apache.org/jira/browse/CALCITE-3545 > Project: Calcite > Issue Type: Test > Components: core >Reporter: groobyming >Priority: Trivial > > How to change calcite syntax, such as allowing table names to start with > numbers -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (CALCITE-3545) How to change calcite syntax
groobyming created CALCITE-3545: --- Summary: How to change calcite syntax Key: CALCITE-3545 URL: https://issues.apache.org/jira/browse/CALCITE-3545 Project: Calcite Issue Type: Test Components: core Reporter: groobyming How to change calcite syntax, such as allowing table names to start with numbers -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Closed] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming closed CALCITE-3511. --- Fix Version/s: 1.21.0 Resolution: Not A Problem > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: New Feature > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Labels: SqlNode, calcite, calcite-core, jackson, json > Fix For: 1.21.0 > > Attachments: screenshot-1.png > > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16979942#comment-16979942 ] groobyming commented on CALCITE-3511: - Thanks for all your replies [~danny0405] [~julianhyde], I will try to create a tool that converts SqlNode to Json string > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: New Feature > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Labels: SqlNode, calcite, calcite-core, jackson, json > Attachments: screenshot-1.png > > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16978051#comment-16978051 ] groobyming commented on CALCITE-3511: - Hi Danny, I think i can get the json string by visiting the ast , although that is not the best way Thanks > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: New Feature > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Major > Labels: SqlNode, calcite, calcite-core, jackson, json > Attachments: screenshot-1.png > > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16977488#comment-16977488 ] groobyming commented on CALCITE-3511: - Hi Danny, Thanks for your reply And how can i get the abstract syntax tree as follows: !screenshot-1.png! > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Critical > Labels: SqlNode, calcite, calcite-core, jackson, json > Attachments: screenshot-1.png > > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming updated CALCITE-3511: Attachment: screenshot-1.png > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Critical > Labels: SqlNode, calcite, calcite-core, jackson, json > Attachments: screenshot-1.png > > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16977390#comment-16977390 ] groobyming commented on CALCITE-3511: - Hi Julian, I want to get the Ast in json string format, Is there any other way to achive this goal. Thank you for the quick response > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Critical > Labels: SqlNode, calcite, calcite-core, jackson, json > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
[ https://issues.apache.org/jira/browse/CALCITE-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] groobyming updated CALCITE-3511: Labels: SqlNode calcite calcite-core jackson json (was: ) > Failed to serialize SqlNode to json string using jackson > > > Key: CALCITE-3511 > URL: https://issues.apache.org/jira/browse/CALCITE-3511 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.21.0 >Reporter: groobyming >Priority: Critical > Labels: SqlNode, calcite, calcite-core, jackson, json > > Failed to serialize SqlNode to json string using jackson, Exception as > follows: > Caused by: java.lang.UnsupportedOperationException: class > org.apache.calcite.sql.SqlSelectOperator: SELECT > at org.apache.calcite.util.Util.needToImplement(Util.java:967) > at > org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) > at > com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) > ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (CALCITE-3511) Failed to serialize SqlNode to json string using jackson
groobyming created CALCITE-3511: --- Summary: Failed to serialize SqlNode to json string using jackson Key: CALCITE-3511 URL: https://issues.apache.org/jira/browse/CALCITE-3511 Project: Calcite Issue Type: Bug Components: core Affects Versions: 1.21.0 Reporter: groobyming Failed to serialize SqlNode to json string using jackson, Exception as follows: Caused by: java.lang.UnsupportedOperationException: class org.apache.calcite.sql.SqlSelectOperator: SELECT at org.apache.calcite.util.Util.needToImplement(Util.java:967) at org.apache.calcite.sql.SqlOperator.getOperandCountRange(SqlOperator.java:201) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:689) ... 32 more -- This message was sent by Atlassian Jira (v8.3.4#803005)