Re: Generic Map type (_MAP) and select star (*)

2018-10-04 Thread Stamatis Zampetakis
Hi Andrei, As you correctly noticed the extra projection column comes from the ORDER BY clause. In order to understand why have a look at the Javadoc of RelRoot class (

Re: Generic Map type (_MAP) and select star (*)

2018-10-04 Thread Michael Mior
Unfortunately I don't have an answer, but just a minor point that when you post links to specific lines of code, it's helpful if that link is to a specific revision. You can press the "y" shortcut to get this link (pasted below).

Generic Map type (_MAP) and select star (*)

2018-10-04 Thread Andrei Sereda
Hello, I would like to understand how exactly generic map type (_MAP) works with select * expression. Say I have the following query (on document database) : -- first query: 2 projectionsselect * from elastic.zips order by _MAP['state'] -- second query: single projectionselect _MAP['state']

[jira] [Created] (CALCITE-2611) Code generation fails if one side of an or contains unknown

2018-10-04 Thread Zoltan Haindrich (JIRA)
Zoltan Haindrich created CALCITE-2611: - Summary: Code generation fails if one side of an or contains unknown Key: CALCITE-2611 URL: https://issues.apache.org/jira/browse/CALCITE-2611 Project:

Re: Avatica or Calcite or mine fault?

2018-10-04 Thread Josh Elser
An AvaticaParameter with a null classname sounds wrong to me. We should know the type (per the schema) for some variable, regardless of whether or not it is nullable. If you can put together a unit test showing what you're seeing in Avatica, that would go an extremely long way. It may also

Re: Avatica or Calcite or mine fault?

2018-10-04 Thread ptr.bo...@gmail.com
I've logged a JIRA for the first bug, with a fix proposal - https://issues.apache.org/jira/browse/CALCITE-2609. But the case with AvaticaParameter NPE still remains unclear for me - in terms of design. Help needed :) On Wed, Oct 3, 2018 at 4:14 PM ptr.bo...@gmail.com wrote: > As for the nulls

[jira] [Created] (CALCITE-2610) AssertionError when group by ordinal in select star query

2018-10-04 Thread Arina Ielchiieva (JIRA)
Arina Ielchiieva created CALCITE-2610: - Summary: AssertionError when group by ordinal in select star query Key: CALCITE-2610 URL: https://issues.apache.org/jira/browse/CALCITE-2610 Project:

[jira] [Created] (CALCITE-2609) Dynamic parameters ? pushed to underlying jdbc schema

2018-10-04 Thread Piotr Bojko (JIRA)
Piotr Bojko created CALCITE-2609: Summary: Dynamic parameters ? pushed to underlying jdbc schema Key: CALCITE-2609 URL: https://issues.apache.org/jira/browse/CALCITE-2609 Project: Calcite