You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Fedor Malchikov (Jira)" <ji...@apache.org> on 2021/02/10 12:09:00 UTC

[jira] [Created] (IGNITE-14157) SQL. Calcite: Returns the name of the variable for count operations as the column name

Fedor Malchikov  created IGNITE-14157:
-----------------------------------------

             Summary: SQL. Calcite: Returns the name of the variable for count operations as the column name
                 Key: IGNITE-14157
                 URL: https://issues.apache.org/jira/browse/IGNITE-14157
             Project: Ignite
          Issue Type: Bug
          Components: sql
            Reporter: Fedor Malchikov 


Example:
{code:sql}
CREATE TABLE t1 ( id INT NOT NULL, int_col INT, PRIMARY KEY (id));
SELECT COUNT(*) FROM t1;
+--------------------------------+
|             EXPR$0             |
+--------------------------------+
+--------------------------------+


{code}
H2 return as expected:
{code:java}
 SELECT COUNT(*) FROM t1;
+--------------------------------+
|            COUNT(*)            |
+--------------------------------+
| 0                              |
+--------------------------------+
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)