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

Allow numeric connection properties, and 'K', 'M', 'G' suffixes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: avatica-1.8.0
    • Component/s: None
    • Labels:
      None

      Description

      Allow numeric connection properties. These means adding NUMBER to enum ConnectionProperty.Type, and getInt, getLong and getDouble methods to ConnectionConfigImpl.PropEnv.

      If a numeric property has a value "10k" interpret it as 10 * 1024. The "k" or "K" suffix means 1024 multiplier, similarly "m" or "M" (1024 * 1024), "g" or "G" (1024 * 1024 * 1024).

        Activity

        Hide
        julianhyde Julian Hyde added a comment -
        Show
        julianhyde Julian Hyde added a comment - Working on a fix in https://github.com/julianhyde/calcite/tree/1121-druid .
        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/dc553607 .

          People

          • Assignee:
            julianhyde Julian Hyde
            Reporter:
            julianhyde Julian Hyde
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development