Help Center/ AI DataLake/ Spark reference/ Datasets/ Dataset Syntax/ Setting or Updating a Dataset Comment
Updated on 2026-11-06 GMT+08:00

Setting or Updating a Dataset Comment

Syntax

COMMENT ON DATASET dataset_name IS comment
  • dataset_name: Name of the dataset to be commented on.
  • comment: A string literal or NULL. If NULL is specified, any existing comment is removed.

Sample Code

COMMENT ON DATASET my_dataset IS 'Huge dataset';
COMMENT ON DATASET my_dataset IS NULL;