Hemanth Boyina created SPARK-60812:
--------------------------------------

             Summary: Support predicate DELETE for the built-in JDBC V2 catalog
                 Key: SPARK-60812
                 URL: https://issues.apache.org/jira/browse/SPARK-60812
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Hemanth Boyina


DELETE FROM a table in the built-in JDBC catalog fails with "table does not 
support deletes" because JDBCTable doesn't implement SupportsDeleteV2. 

 

Make JDBCTable support DELETE by compiling the WHERE condition and running a 
single DELETE statement on the database. Only translate conditions we can push 
down safely: comparisons, IS [NOT] NULL, IN, AND/OR/NOT, with a column compared 
to an integer, decimal, or NULL literal. Anything else keeps the old behavior 
and fails during analysis without deleting anything. 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to