Skip to content

Commit

Permalink
Implement logical plan serde for CopyTo (#8618)
Browse files Browse the repository at this point in the history
* Implement logical plan serde for CopyTo

* add link to issue

* clippy

* remove debug logging
  • Loading branch information
andygrove authored Dec 22, 2023
1 parent fd121d3 commit 0ff5305
Show file tree
Hide file tree
Showing 5 changed files with 603 additions and 10 deletions.
21 changes: 21 additions & 0 deletions datafusion/proto/proto/datafusion.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ message LogicalPlanNode {
PrepareNode prepare = 26;
DropViewNode drop_view = 27;
DistinctOnNode distinct_on = 28;
CopyToNode copy_to = 29;
}
}

Expand Down Expand Up @@ -317,6 +318,26 @@ message DistinctOnNode {
LogicalPlanNode input = 4;
}

message CopyToNode {
LogicalPlanNode input = 1;
string output_url = 2;
bool single_file_output = 3;
oneof CopyOptions {
SQLOptions sql_options = 4;
FileTypeWriterOptions writer_options = 5;
}
string file_type = 6;
}

message SQLOptions {
repeated SQLOption option = 1;
}

message SQLOption {
string key = 1;
string value = 2;
}

message UnionNode {
repeated LogicalPlanNode inputs = 1;
}
Expand Down
Loading

0 comments on commit 0ff5305

Please sign in to comment.