You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2018/08/19 16:16:00 UTC
[jira] [Commented] (CALCITE-2479) SqlAdvisor: lack of hints for
select s.count SQL
[ https://issues.apache.org/jira/browse/CALCITE-2479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16585191#comment-16585191 ]
Vladimir Sitnikov commented on CALCITE-2479:
--------------------------------------------
Note: the PR 773 adds just an ignored test case. The solution is to be investigated.
> SqlAdvisor: lack of hints for select s.count SQL
> ------------------------------------------------
>
> Key: CALCITE-2479
> URL: https://issues.apache.org/jira/browse/CALCITE-2479
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.17.0
> Reporter: Vladimir Sitnikov
> Assignee: Julian Hyde
> Priority: Major
>
> Case for SqlAdvisorTest:
> {code:java} @Ignore("It looks like s.count clashes with COUNT keyword, however the same SQL executes just fine")
> @Test @WithLex(Lex.JAVA) public void testAdviceExpression() {
> String sql;
> sql = "select s.count+s.co^ from (select 1 count from emp) s";
> assertComplete(sql, "COLUMN(count)\n", "co",
> ImmutableMap.of("COLUMN(count)", "count"));
> }
> {code}
> It is not clear why SQL fails to advise, however the same query works just fine via JDBC.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)