Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6398

Returns uniform SQL dialect in calcite for the PQS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: queryserver-6.0.0
    • Component/s: queryserver
    • Labels:
      None

      Description

      database name in core module

      @Override
      public String getDatabaseProductName() throws SQLException {
          return "Phoenix";
      }

      database name in PQS module

      return DriverVersion.load(
          Driver.class,
          "org-apache-phoenix-remote-jdbc.properties",
          "Phoenix Remote JDBC Driver",
          "unknown version",
          "Apache Phoenix",
          "unknown version");
      

      In result, Calcite could not create `SqlDialect` for PQS.

      case "ORACLE":
        return new OracleSqlDialect(c);
      case "PHOENIX":
        return new PhoenixSqlDialect(c);
      .....

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                luoc Cong Luo
                Reporter:
                luoc Cong Luo
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: