Skip to content

Commit

Permalink
chore: Update substrait proto code to v0.59.0 (#123)
Browse files Browse the repository at this point in the history
* Update substrait proto with tag v0.59.0
* Fix name in code because of name change of proto
  • Loading branch information
anshuldata authored Nov 14, 2024
1 parent 65c6b3e commit fa535b9
Show file tree
Hide file tree
Showing 12 changed files with 10,193 additions and 2,800 deletions.
2 changes: 1 addition & 1 deletion scripts/update_substrait.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shutil
from os import walk

GITHUB_TAG = "5fe2a16ac3a3e8deb970b757ea91dc33b7763a1d" # V0.53
GITHUB_TAG = "a0a10bb39dae32a5564f4f37a4673068a08c8e91" # v0.59.0
# Change to substrait folder
sub_folder = os.path.join(os.path.dirname(os.path.realpath(__file__)),'..','third_party','substrait')
os.chdir(sub_folder)
Expand Down
4 changes: 2 additions & 2 deletions src/from_substrait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,10 @@ shared_ptr<Relation> SubstraitToDuckDB::TransformJoinOp(const substrait::Rel &so
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_RIGHT:
djointype = JoinType::RIGHT;
break;
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_SINGLE:
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_LEFT_SINGLE:
djointype = JoinType::SINGLE;
break;
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_SEMI:
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_LEFT_SEMI:
djointype = JoinType::SEMI;
break;
case substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_OUTER:
Expand Down
4 changes: 2 additions & 2 deletions src/to_substrait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,10 +963,10 @@ substrait::Rel *DuckDBToSubstrait::TransformComparisonJoin(LogicalOperator &dop)
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_RIGHT);
break;
case JoinType::SINGLE:
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_SINGLE);
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_LEFT_SINGLE);
break;
case JoinType::SEMI:
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_SEMI);
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_LEFT_SEMI);
break;
case JoinType::OUTER:
sjoin->set_type(substrait::JoinRel::JoinType::JoinRel_JoinType_JOIN_TYPE_OUTER);
Expand Down
3,385 changes: 2,575 additions & 810 deletions third_party/substrait/substrait/algebra.pb.cc

Large diffs are not rendered by default.

2,459 changes: 2,301 additions & 158 deletions third_party/substrait/substrait/algebra.pb.h

Large diffs are not rendered by default.

1,195 changes: 912 additions & 283 deletions third_party/substrait/substrait/parameterized_types.pb.cc

Large diffs are not rendered by default.

806 changes: 773 additions & 33 deletions third_party/substrait/substrait/parameterized_types.pb.h

Large diffs are not rendered by default.

638 changes: 503 additions & 135 deletions third_party/substrait/substrait/type.pb.cc

Large diffs are not rendered by default.

Loading

0 comments on commit fa535b9

Please sign in to comment.