jackylee-ch opened a new pull request, #9591:
URL: https://github.com/apache/paimon/pull/9591

   ### Purpose
   
   `TableSchema.originalBucketKeys` splits `bucket-key` on `,` without 
trimming, so `'bucket-key' = 'id, name'` keeps the leading space in the second 
name and fails the field-name check two lines later with `Field names [id, 
name] should contains all bucket keys [id,  name]`. The identically formatted 
`'primary-key' = 'id, name'` is accepted, because `Schema` trims both 
`primary-key` and `partition`.
   
   `SparkCatalog.resolveColumnNameList` already pre-trims to work around this, 
so only the Flink SQL, Hive and Java/REST paths hit it.
   
   ### Tests
   
   `TableSchemaTest#testBucketKeyTrimsWhitespaceAroundSeparator`.
   
   Written with Claude Code; reasoning and verification are mine.
   


-- 
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