SQL Grammar
Oracle AI Data Platform Workbench users can use SQL to automate their DDL workloads.
Catalog SQL Grammar
Catalog objects support the listed SQL grammar for DDL workloads.
Oracle AI Data Platform Workbench supports all standard Spark SQL data types. For more information, see Apache Spark Documentation - Supported Data Types.
Table 45-1 Standard and External Catalog SQL Grammar
| Operation | Grammar | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Create Catalog |
Catalog
External Catalog
OPTIONS will have connection details External Catalog - Oracle Autonomous AI Lakehouse Example
Response
Error
|
||||||||||||||||||||||||||||||||||||
| Alter Catalog |
Alter catalog name
Alter catalog description
Alter catalog options (conn)
Response
Error
|
||||||||||||||||||||||||||||||||||||
| Delete Catalog |
By default during DROP catalog, all child objects will also get deleted Response
Error
|
||||||||||||||||||||||||||||||||||||
| List Catalogs |
regex_pattern: A regular expression pattern that is used to filter the results of the statement. Response:
Error
|
||||||||||||||||||||||||||||||||||||
| Describe Catalog |
Response (Standard Catalog):
Response (External catalog):
Error:
|
||||||||||||||||||||||||||||||||||||
| Refresh Catalog | Response:
|
Schema SQL Grammar
Schema support the listed SQL grammar for DDL workloads.
Oracle AI Data Platform Workbench supports all standard Spark SQL data types. For more information, see Apache Spark Documentation - Supported Data Types.
Table 45-2 List of Schema SQL Grammar
| Operation | Grammar | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Create Schema |
Response
Error
|
||||||||||||||||||
| Alter Schema |
Alter Schema Description
Response
Error
|
||||||||||||||||||
| Delete Schema |
By default during DROP schema, all child objects will also get deleted |
||||||||||||||||||
| List Schemas |
Examples:
Response:
Error
|
||||||||||||||||||
| Describe Schema (get details) |
|
||||||||||||||||||
| Drop Schema | drop schema [ IF EXISTS ] <<schema_name>> cascade |
||||||||||||||||||
| Refresh Schema | Response:
|
Volume SQL Grammar
Volume objects support the listed SQL grammar for DDL workloads.
Oracle AI Data Platform Workbench supports all standard Spark SQL data types. For more information, see Apache Spark Documentation - Supported Data Types.
Table 45-3 Volume SQL Grammar
| Operation | Grammar | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Create volume |
|
||||||||||||||
| Alter volume properties |
|
||||||||||||||
| Drop volume |
OR
By default during DROP volume, all child objects will also get deleted |
||||||||||||||
| List Volumes |
|
||||||||||||||
| Describe Volume |
Error:
|
Table SQL Grammar
Table objects support the listed SQL grammar for DDL workloads.
Oracle AI Data Platform Workbench supports all standard Spark SQL data types. For more information, see Apache Spark Documentation - Supported Data Types.
| Operation | Grammar |
|---|---|
| Create Table |
Response:
Error:
|
| Create Managed Table |
Create Managed
Table
Response:
Error:
|
| Create Managed Table with Data |
Response:
Error:
|
| Create Table with Uniform Support | |
| Alter Table |
|
| Drop Table |
Response:
Error:
|
| List Tables in a schema |
regex_pattern: A regular expression pattern that is used to filter the results of the statement. Response:
Error:
|
| Describe Table |
Format: If DESCRIBE TABLE catalog.schema.table Response:
DESCRIBE TABLE catalog.schema.table column
Response:
|
| Refresh Table | Response:
|