[jira] [Created] (CALCITE-4542) Suboptimal plan is chosen when TopDownRuleDriver is enabled

2021-03-19 Thread Konstantin Orlov (Jira)
Konstantin Orlov created CALCITE-4542: - Summary: Suboptimal plan is chosen when TopDownRuleDriver is enabled Key: CALCITE-4542 URL: https://issues.apache.org/jira/browse/CALCITE-4542 Project: Cal

Re: Derive is not being called for some newly created rels

2021-03-19 Thread Konstantin Orlov
Hi, Julian! Thanks for your reply! I file a ticket for this issue [1]. [1] https://issues.apache.org/jira/browse/CALCITE-4542 -- Regards, Konstantin Orlov > On 15 Mar 2021, at 19:56, Julian Hyde wrote: > > Can you please log a bug? Describe symptoms, not what’s happening in the code. > >

[jira] [Created] (CALCITE-4543) Interval literal looses a fractional second when it has scale greater than 3

2021-03-19 Thread Vladimir Ozerov (Jira)
Vladimir Ozerov created CALCITE-4543: Summary: Interval literal looses a fractional second when it has scale greater than 3 Key: CALCITE-4543 URL: https://issues.apache.org/jira/browse/CALCITE-4543

how to use Avatica JDBC query druid, sql body contains Chinese

2021-03-19 Thread leeqiang wang
Hi,All Recently, i make Druid SQL queries using the Avatica JDBC driver,but i met a question ; if sql body contains Chinese,then return nothing; so i open the source code,i find a method: when request contains Chinese,then sql body may translate into '???',so can you give me some advise. *org.a

Re: Make RelNode attribute order part of MEMO

2021-03-19 Thread Julian Hyde
> There are hundreds of usages of the RexInputRef, so the implementation of > this idea might be prohibitively expensive. But putting this problem aside, > do you envision any other potential blockers for the implementation of that > idea? Suppose we wanted to build permutations into every registe

[jira] [Created] (CALCITE-4544) Deprecate Metadata API backed by Java Reflection

2021-03-19 Thread James Starr (Jira)
James Starr created CALCITE-4544: Summary: Deprecate Metadata API backed by Java Reflection Key: CALCITE-4544 URL: https://issues.apache.org/jira/browse/CALCITE-4544 Project: Calcite Issue Ty

Re: [DISCUSS] Default disable the RexNode normalization(or operands reorder)

2021-03-19 Thread Stamatis Zampetakis
Just a quick note so that we are all on the same page. Currently, the so-called normalization in Calcite does not really perform any re-ordering of the operands; everything happens inside the implementation of RexCall#equals. For example, we are saying that $1 = 'A' is equals to 'A' = $1 by reorder