PDavid opened a new pull request, #2569: URL: https://github.com/apache/phoenix/pull/2569
### Why are the changes needed? #### Problem When CREATE TABLE IF NOT EXISTS was executed against an already-existing table, Phoenix would overwrite the HBase-level table and column family properties (e.g. REGION_REPLICATION, VERSIONS, TTL) with the values from the new DDL statement. This is unexpected - IF NOT EXISTS should be a no-op if the table already exists. (Please see the ticket about reproduction steps.) #### Fix In ConnectionQueryServicesImpl changed ensureTableCreated call for TABLE types - passes modifyExistingMetaData = false when the table type is TABLE, so existing properties are not overwritten. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added new test in CreateTableIT which reproduces the problem and verifies the fix. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.6 <[email protected]> -- 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]
