Question about creating a SqlBasicCall

2022-01-29 Thread Zhe Hu
Hi, community. I have one small question about how to create a SqlBasicCall in Parser.jj correctly. Take TimestampAddFunctionCall as an example, we create it by: SqlStdOperatorTable.TIMESTAMP_ADD.createCall(s.end(this), args) As a result, call like “TIMESTAMPADD(arg0, arg1, arg2)” will b

Jenkins build is back to normal : Calcite » Calcite-snapshots #58

2022-01-29 Thread Apache Jenkins Server
See

Re: Question about creating a SqlBasicCall

2022-01-29 Thread Julian Hyde
Logically, your operator simply has three arguments. How the call with those arguments is converted back into SQL - whether it generates a comma or a space between arguments 1 and 2 - is a matter of syntax. It looks like your operator is unparsing calls using the default operator syntax, which u

JaCoCo adds a synthetic method "$jacocoInit" to things, which causes an assertion in org.apache.calcite.rel.metadata.MetadataDef constructor to fail

2022-01-29 Thread Gavin Ray
Have been rewriting my code on this test for a few hours now, when I finally decided to step through the debugger This line is what is throwing an assertion failure: // Handler must have the same methods as Metadata, each method having // additional "subclass-of-RelNode, RelMetadataQuery"

Re: Calcite can't generate code for one of the query

2022-01-29 Thread Dmitry Sysolyatin
I don't use ReflectiveSchema. I created RelProtoDataType using RelDataTypeImpl.*proto *directly. Is there any documentation where I can find a list of supported types ? On Fri, Jan 28, 2022 at 6:51 PM Julian Hyde wrote: > I guess you’re using ReflectiveSchema. I don’t think we support columns