TherChenYang opened a new pull request, #30228:
URL: https://github.com/apache/shardingsphere/pull/30228
Fixes #27099.
Changes proposed in this pull request:
- support parsing create table table annotations [Table
Annotations](https://docs.oracle.com/en/database/oracle/oracle-database/21/jjdbc/statement-and-resultset-caching.html#GUID-1764F69A-8E6B-4B78-AAF0-1D6257B3BBE5)
<img width="717" alt="image"
src="https://github.com/apache/shardingsphere/assets/124348939/463d4901-5c0b-4451-ba73-ae612780538b">
- support parsing create table parallel clause
[Parallel](https://docs.oracle.com/cd/A97630_01/server.920/a96524/c20paral.htm)
#### Support for the following sql
```sql
CREATE TABLE employees_obj
( e_name VARCHAR2(100),
e_number NUMBER,
e_dept REF department_typ SCOPE IS departments_obj_t );
```
```sql
CREATE TABLE foo (a NUMBER, b VARCHAR2(20)) RESULT_CACHE (MODE FORCE);
```
```sql
CREATE TABLE employees_temp AS SELECT * FROM EMPLOYEES;
```
```sql
CREATE TABLE hr.admin_emp_dept
PARALLEL COMPRESS
AS SELECT * FROM hr.employees
WHERE department_id = 10;
```
---
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.
--
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]