Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28303 Support DELETE/UPDATE/MERGE Operations in DataSource V2
  3. SPARK-29835

Remove the unnecessary conversion from Statement to LogicalPlan for DELETE/UPDATE

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      The current parse and analyze flow for DELETE is: 1, the SQL string will be firstly parsed to `DeleteFromStatement`; 2, the `DeleteFromStatement` be converted to `DeleteFromTable`. However, the SQL string can be parsed to `DeleteFromTable` directly, where a `DeleteFromStatement` seems to be redundant.

      It is the same for UPDATE.

      Attachments

        Issue Links

          Activity

            People

              xinxianyin Xianyin Xin
              xinxianyin Xianyin Xin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: