Commit e13d314
authored
[feat](maxcompute) support create/drop table operations (#60702)
### What problem does this PR solve?
Support DDL operations (CREATE TABLE and DROP TABLE) for MaxCompute
external catalog in Doris. This enables users to create and drop
tables directly in MaxCompute through Doris SQL interface.
Example usage:
1. Basic table creation:
CREATE TABLE test_table (
id INT,
name STRING,
age INT
);
3. Table with partition and distribution:
CREATE TABLE test_table_partitioned (
id INT,
name STRING,
value INT,
ds STRING
)
PARTITION BY (ds)()
DISTRIBUTED BY HASH(id) BUCKETS 8;
Key changes:
- Add MaxComputeMetadataOps class to handle table creation and deletion
- Extend MaxComputeExternalCatalog to support metadata operations
- Add column validation and type mapping for MaxCompute
- Add regression tests for create/drop table operations1 parent 71fb984 commit e13d314
File tree
7 files changed
+1044
-3
lines changed- fe/fe-core/src/main/java/org/apache/doris
- datasource
- maxcompute
- operations
- nereids/trees/plans/commands/info
- regression-test
- data/external_table_p2/maxcompute
- suites/external_table_p2/maxcompute
7 files changed
+1044
-3
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
241 | 249 | | |
242 | 250 | | |
243 | 251 | | |
| |||
0 commit comments