Updated on 2026-11-06 GMT+08:00

Updating Dataset Format

Syntax

ALTER DATASET dataset_name SET FORMAT <format> CONTENT_TYPE(<content_type>*))
  • format: Data format enumeration: ROW/TEXT/IMAGE/AUDIO/VIDEO/CUSTOM.
  • content_type: When the format is ROW, optional values for content_type include: CSV (comma-separated values file), JSONL (JSON object lines file), and AVRO (AVRO row-based file). For image file formats, this is set when the format is IMAGE. Optional values for content_type include: JPG (JPG image), PNG (PNG image), and TIFF (TIFF image). content_type has no restrictions. Any string is allowed as content.

Sample Code

ALTER DATASET my_dataset SET TAGS ('tag1' = 'val1', 'tag2' = 'val2', 'tag3' = 'val3');  
ALTER DATASET my_dataset UNSET TAGS ('tag1', 'tag2', 'tag3');
ALTER DATASET dataset_name SET FORMAT IMAGE
ALTER DATASET dataset_name SET FORMAT IMAGE CONTENT_TYPE ("JPG", "PNG")