Hey, I'm trying to enable compaction on an Iceberg...
# aws
i
Hey, I'm trying to enable compaction on an Iceberg table in AWS Glue catalog (using Java, but not sure if it matters). When using the AWS CLI, you can enable it by using:
Copy code
aws glue create-table-optimizer \
  --catalog-id 123456789012 \
  --database-name iceberg_db \
  --table-name iceberg_table \
  --table-optimizer-configuration '{"roleArn":"arn:aws:iam::123456789012:role/compaction_role", "enabled":'true'}' \
  --type compaction
Any idea?