Creates a new version of the specified dataset.
REQUIRED | KEY | TYPE | DESCRIPTION | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Yes | datasetId | str | Unique string identifier associated with the dataset. | ||||||||||||
No | location | str | External URI to import the dataset from. If not specified, the last location will be used. | ||||||||||||
No | fileFormat | str | File format to be used. If not specified, the service will try to detect the file format. | ||||||||||||
No | csvDelimiter | str | If the file format is CSV, use a specific CSV delimiter. | ||||||||||||
No | mergeFileSchemas | bool | Signifies if the merge file schema policy is enabled. | ||||||||||||
No | parsingConfig | ParsingConfig |
Custom config for dataset parsing.
|
||||||||||||
No | sqlQuery | str | The SQL query to use when fetching data from the specified location. Use `__TABLE__` as a placeholder for the table name. For example: "SELECT * FROM __TABLE__ WHERE event_date > '2021-01-01'". If not provided, the entire dataset from the specified location will be imported. |
KEY | TYPE | DESCRIPTION | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
success | Boolean | true if the call succeeded, false if there was an error | |||||||||||||||||||||||||||||||||||||||||||||
result | DatasetVersion |
|
TYPE | WHEN |
---|---|
DataNotFoundError |
|
InvalidEnumParameterError | An invalid value is passed for |
InvalidParameterError | The location is not a valid cloud location URI. |
PermissionDeniedError | The location has not been verified with Abacus.AI. |
DataNotFoundError | No file was found at the specified location. |