Skip to content

Improve error message of table:import to UDP. #245

@kamikaseda

Description

@kamikaseda

Description

Importing to UDP is not supported except for SQL, which results in an error.
https://docs.treasuredata.com/display/PD/Defining+Partitioning+for+Presto#DefiningPartitioningforPresto-Limitations

Importing using td table:import is a Streaming Import, so if you try to write to a UDP table, you will get an error, but the error message is not clear.

$ td table:import db_tame udp_table_name --json apache.json
importing apache.json...
  uploading 117093 bytes...
Error: 422: Import failed: Data validation error, verify fields and try again

Goal

The Data Connector command td connector:issue shows the same error with a clear message.

$ td connector:issue load.yml --database db_name --table udp_table_name --time-column time
Error: 422: BulkLoad job issuing failed: ["Bulk Load Job does not yet support inserting data into User Defined Partitioned tables. Please see our User Defined Partitioning documentation for more details on currently supported components. Expanded access will be available soon."]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions