Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2670

Optimization opportunities for OBJECT_REMOVE_FIELDS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.4.1
    • Fix Version/s: 0.9.5
    • Component/s: SQL - Translator SQL++
    • Labels:
      None

      Description

      Consider a query like the following:

      SELECT VALUE OBJECT_REMOVE_FIELDS(t, ["user"]) FROM (SELECT VALUE t FROM TinySocial.ChirpMessages t) t;

      This query will retain all fields in the ChirpMessages except for user, but the SQL++ compiler will currently not understand this (viewing the function call as a black box in all likelihood). There is a future opportunity to gain performance by pushing the implied projection down lower in the query pipeline, in cases where the query is more complex.

        Attachments

          Activity

            People

            • Assignee:
              dlychagin-cb Dmitry Lychagin
              Reporter:
              dtabass Michael J. Carey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: