XiaoHongbo-Hope opened a new pull request, #6501:
URL: https://github.com/apache/paimon/pull/6501

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   [core][rest] Add schema validation and inference for REST catalog external 
tables
   ### Purpose
   Currently, REST catalog supported external tables but did not validate 
schema consistency between the filesystem and server-side schema. External 
tables always required explicit schema definition even when schema already 
existed in the filesystem.
   <!-- Linking this pull request to the issue -->
   
   <!-- What is the purpose of the change -->
   This PR
   
   Enhances REST catalog external table creation with schema inference and 
validation:
   
   - Validates client-provided schema against filesystem schema before creating 
table metadata
   - Enables creating external tables without explicit schema when schema 
exists 
     in the location
   
   Examples:
   - CREATE TABLE t2 (id INT, name STRING) USING paimon LOCATION 'path' 
(explicit schema)
   - CREATE TABLE t2 USING paimon LOCATION 'path' (schema inference, newly 
supported)
   ### Tests
   PaimonExternalTableTest
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to