Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16576

Move plan SQL generation code from SQLBuilder into logical operators

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • SQL
    • None

    Description

      We currently handle all SQL query generation in a single class (SQLBuilder). This has many disadvantages:

      1. It is not extensible, i.e. it is not possible to introduce a new logical operator, even just for experimentation purpose, without modifying Spark.

      2. It is very fragile. When we introduce a new logical operator, it is very likely that we forget to update SQLBuilder and then the use of that new logical operator would fail view definition.

      We should move the SQL definition part into logical operators themselves, so this becomes more robust and scalable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rxin Reynold Xin
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: