ealeonraz opened a new pull request, #39201:
URL: https://github.com/apache/shardingsphere/pull/39201
Fixes #31495.
Changes proposed in this pull request:
- Support Doris multi-range partition items in CREATE TABLE partition
definitions: `FROM (...) TO (...) INTERVAL n [unit]` (date/hour/integer
variants), reusing the same shape as the existing `ALTER TABLE ... ADD
PARTITIONS` rule
- Support Doris fixed-range partition values `PARTITION p VALUES [(...),
(...))` in CREATE TABLE, mirroring the existing `dorisPartitionDesc` rule used
by ALTER TABLE
- Support per-partition property lists after the values clause, e.g.
`PARTITION p1 VALUES LESS THAN ('2022-01-01') ('storage_policy' = '...',
'replication_num'='1')`, reusing the existing `properties` rule
- Add 4 SQL cases + assert cases; `InternalDorisParserIT` passes (1261
tests, 0 failures)
Notes on the issue's SQL case list: the `example_db.table_hash` case already
parses on current master (no change needed, so no assert added per the issue
guidance); the scraped fragments (`CREATE, TABLE`, array-function signatures,
`STRING`) are not valid standalone statements and were ignored per the issue
guidance.
---
Before committing this PR, I'm sure that I have checked the following
options:
- [x] My code follows the [code of
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/)
of this project.
- [x] I have self-reviewed the commit code.
- [ ] I have (or in comment I request) added corresponding labels for the
pull request.
- [x] I have passed maven check locally : `./mvnw clean install -B -T1C
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
- [ ] I have made corresponding changes to the documentation.
- [x] I have added corresponding unit tests for my changes.
- [ ] I have updated the Release Notes of the current development version.
For more details, see [Update Release
Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
--
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]