[ 
https://issues.apache.org/jira/browse/PHOENIX-6398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Istvan Toth resolved PHOENIX-6398.
----------------------------------
    Fix Version/s:     (was: 4.16.1)
                   queryserver-6.0.0
       Resolution: Fixed

Committed to master.
Thank you for the patch [~luoc].

> Returns uniform SQL dialect in calcite for the PQS
> --------------------------------------------------
>
>                 Key: PHOENIX-6398
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6398
>             Project: Phoenix
>          Issue Type: Improvement
>          Components: queryserver
>            Reporter: Cong Luo
>            Assignee: Cong Luo
>            Priority: Major
>             Fix For: queryserver-6.0.0
>
>
> database name in core module
> {code:java}
> @Override
> public String getDatabaseProductName() throws SQLException {
>     return "Phoenix";
> }{code}
> database name in PQS module
> {code:java}
> return DriverVersion.load(
>     Driver.class,
>     "org-apache-phoenix-remote-jdbc.properties",
>     "Phoenix Remote JDBC Driver",
>     "unknown version",
>     "Apache Phoenix",
>     "unknown version");
> {code}
> In result, Calcite could not create `SqlDialect` for PQS.
> {code:java}
> case "ORACLE":
>   return new OracleSqlDialect(c);
> case "PHOENIX":
>   return new PhoenixSqlDialect(c);
> .....{code}
>  



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

Reply via email to