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

Extensibility of SqlDialectFactory lacks reusability of SqlDialectFactoryImpl.*

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.30.0
    • core

    Description

      (nicetities first - great project and thanks all for the great work)

      Although it's possible to extend the SqlDialectFactory, the custom implementation cannot reuse any of the behaviour of the default SqlDialectFactoryImpl. The default SqlDialectFactoryImpl has lots of important/reusable behaviour such as #getCasing, #isCaseSensitive, #getNullCollation or even the default decisioning in the #create method.

      If any user needs to provide a custom SqlDialect yet still support the existing SqlDialects the user needs to copy the whole SqlDialectFactoryImpl to make the custom changes.

      This request is to make the default behavior in SqlDialectFactoryImpl reusable so that extensions don't need to fork a whole class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcobjorge Marco Jorge
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m