Skip to content

Add an option for exporting CSV files as a table#178

Closed
davidwzhao wants to merge 5 commits intomainfrom
dz-csv-export-table
Closed

Add an option for exporting CSV files as a table#178
davidwzhao wants to merge 5 commits intomainfrom
dz-csv-export-table

Conversation

@davidwzhao
Copy link
Contributor

No description provided.

@davidwzhao davidwzhao marked this pull request as ready for review February 16, 2026 06:35
Comment on lines +70 to +104
message ExportCSVConfig {
string path = 1;
repeated ExportCSVColumn data_columns = 2;

optional int64 partition_size = 3;
optional string compression = 4;
optional bool syntax_header_row = 5;
optional string syntax_missing_string = 6;
optional string syntax_delim = 7;
optional string syntax_quotechar = 8;
optional string syntax_escapechar = 9;

// TODO: support data integration options, e.g., private tokens for private buckets etc.
}

message ExportCSVColumn {
string column_name = 1;
RelationId column_data = 2;
}

message ExportCSVTableConfig {
string path = 1;
RelationId table_def = 2;

optional int64 partition_size = 3;
optional string compression = 4;
optional bool syntax_header_row = 5;
optional string syntax_missing_string = 6;
optional string syntax_delim = 7;
optional string syntax_quotechar = 8;
optional string syntax_escapechar = 9;

// TODO: support data integration options, e.g., private tokens for private buckets etc.
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For loading I went with the "locator" abstraction, because there is so much shared CSV configuration, that doesn't depend on where exactly the CSV is ultimately coming from.

I feel like something similar would be appropriate here. Keep the generic ExportCSVConfig but generalize repeated ExportCSVColumn to something like a ExportCSVSource, which abstracts over "bunch of GNF columns" and "single wide table definition".

There is some backwards compatibility annoyance here, but I think overall it would be cleaner.

@davidwzhao
Copy link
Contributor Author

Closing in favour of #199

@davidwzhao davidwzhao closed this Feb 19, 2026
@comnik comnik deleted the dz-csv-export-table branch February 19, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments