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

Planner: allow parsing directly a stream instead of a java.lang.String

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: core
    • Labels:
      None

      Description

      In 1.17.0 the org.apache.calcite.tools.Planner interface only accept a java.lang.String as input.

      In order to reduce memory allocations and copies it will be useful that the planner could accept the query in a more 'raw' format.

      Creating a java.lang.String is very expensive, and if your "query" is coming from the network (think about a Netty Direct memory ByteBuf) you are forced to create a copy of the text of the query.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              eolivelli Enrico Olivelli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: