Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3050

Integrate SqlDialect and SqlParser.Config

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • None
    • None

    Description

      SqlDialect is used by the JDBC adapter to generate SQL in the target dialect of a data source. SqlParser.Config is used to set what the parser should allow for SQL statements sent to Calcite. But they both are a representation of "dialect". And they come together when we want to use a Babel parser to understand SQL statements that are meant for a data source.

      So it makes sense to integrate them, somehow. We could add a method

      void SqlParser.ConfigBuilder.setFrom(SqlDialect dialect)

      or do it from the other end,

      SqlDialect.configureParser(SqlParser.ConfigBuilder configBuilder)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment