Cong Luo created PHOENIX-6398:
---------------------------------
Summary: 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
Fix For: 4.16.1
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)