Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19842 Informational Referential Integrity Constraints Support in Spark
  3. SPARK-21824

DROP TABLE should automatically drop any dependent referential constraints or raise error.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL
    • None

    Description

      DROP TABLE should raise error if there are any dependent referential constraints unless user specifies CASCADE CONSTRAINTS

      Syntax :

      DROP TABLE <name> [CASCADE CONSTRAINTS]
      

      Hive drops the referential constraints automatically. Oracle requires user specify CASCADE CONSTRAINTS clause to automatically drop the referential constraints, otherwise raises the error. Should we stick to the Hive behavior ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tsuresh Suresh Thalamati
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: