Gengliang Wang created SPARK-51797:
--------------------------------------

             Summary: Code cleanup in table constraints
                 Key: SPARK-51797
                 URL: https://issues.apache.org/jira/browse/SPARK-51797
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 4.1.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


1. Made `tableName` a class member of `TableConstraint` trait and its 
implementations
   - Added `tableName` as a required field in constraint case classes
   - Implemented `withTableName` method to support table name updates
   - This change helps ensure consistent constraint naming and better logical 
plan comparison

2. Simplified constraint parsing
   - Removed dependency on ANTLR `ParserRuleContext` from constraint APIs
   - This change reduces coupling between parsing and constraint implementation

The changes simplify constraint handling and make the code more maintainable by 
reducing parser dependencies and standardizing constraint naming.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to