diff --git a/catalog/app/containers/Admin/Buckets/Tabulator/Tabulator.tsx b/catalog/app/containers/Admin/Buckets/Tabulator/Tabulator.tsx index ac009117d05..778d4f4064d 100644 --- a/catalog/app/containers/Admin/Buckets/Tabulator/Tabulator.tsx +++ b/catalog/app/containers/Admin/Buckets/Tabulator/Tabulator.tsx @@ -28,6 +28,17 @@ const ConfigEditor = React.lazy(() => ConfigEditorModule().then((m) => ({ default: m.ConfigEditor })), ) +const defaultConfig = `schema: + - name: column1 # specify the schema + type: Utf8 +source: + type: quilt-packages + package_name: "" # specify a RegEx for matching packages + logical_key: ".*\\\\.csv$" # specify a RegEx for matching logical keys +parser: + format: csv # or parquet +` + const validateTable: FF.FieldValidator = (...args) => ConfigEditorModule().then((m) => m.validateTable(...args)) @@ -412,6 +423,7 @@ function AddTable({ disabled, onCancel, onSubmit }: AddTableProps) { validateTable, )} disabled={disabled} + initialValue={defaultConfig} />
{submitFailed && (