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 15:48:00 UTC
[jira] [Created] (CALCITE-2479) SqlAdvisor: lack of hints for
select s.count SQL
Vladimir Sitnikov created CALCITE-2479:
------------------------------------------
Summary: 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
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)