Get table schema and data
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/schemas/{schemaKey}/actions/inferSchemaWithPreview
Returns table schema and data from the specified location.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
schemaKey(required): string
The fully qualified name of the schema in the format
. .
Header Parameters
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
should-update-recent: boolean
A flag to identify if the recent list should be updated.Default Value:
false
Details of the location from which the table schema and data can be inferred.
Root Schema : PerformInferSchemaDetails
Type:
objectInfer schema details.
Show Source
-
dataFormat(required):
string
Allowed Values:
[ "AVRO", "ORC", "PARQUET", "TEXTFILE", "JSON", "CSV", "DELTA", "ICEBERG" ]Data format of the schema location. -
inferSchemaProperties:
array inferSchemaProperties
Properties which are needed for inferring schema.
-
location(required):
string
Location of the table to infer schema.
-
numberOfPartitions:
integer
Number of root partition folders to scan.
Nested Schema : inferSchemaProperties
Type:
arrayProperties which are needed for inferring schema.
Show Source
-
Array of:
object InferSchemaProperties
Properties to be supplied for infer schema.
Nested Schema : InferSchemaProperties
Type:
objectProperties to be supplied for infer schema.
Show Source
-
propertyName:
string
Minimum Length:
1Maximum Length:255Name of the property. -
propertyValue:
string
Minimum Length:
1Maximum Length:255Property value.
Response
Supported Media Types
- application/json
200 Response
Successful operation. Table schema and data are retrieved.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : InferSchemaWithPreview
Type:
objectInferred schema and data.
Show Source
-
data(required):
array data
Sample preview data.
-
schema(required):
array schema
Column information obtained by inferring schema.
Nested Schema : data
Type:
arraySample preview data.
Show Source
-
Array of:
object items
Additional Properties Allowed: additionalProperties
Nested Schema : schema
Type:
arrayColumn information obtained by inferring schema.
Show Source
-
Array of:
object InferSchemaColumn
Column inferred from location.
Nested Schema : InferSchemaColumn
Type:
objectColumn inferred from location.
Show Source
-
fieldName:
string
Minimum Length:
1Maximum Length:767Name of the column. -
fieldType:
string
Minimum Length:
1Maximum Length:9999Type of the column. -
isPartition:
boolean
Boolean value indicating if this column is partition column.
-
rank:
integer
For partition columns rank value indicates level, for non-partition column the value will be zero.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
405 Response
Method Not Allowed. Request is recognized but not supported.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
412 Response
Precondition Failed (One or more conditions in request failed).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.