Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [{name = "Substrait contributors", email = "substrait@googlegroups.com
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10"
dependencies = ["protobuf >=3.19.1,<6"]
dependencies = ["protobuf >=3.19.1,<6", "typing_extensions"]
dynamic = ["version"]

[tool.setuptools_scm]
Expand Down
26 changes: 14 additions & 12 deletions src/substrait/gen/json/simple_extensions.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/substrait/type_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,11 @@ def infer_expression_type(
elif rex_type == "window_function":
return expression.window_function.output_type
elif rex_type == "if_then":
return infer_expression_type(expression.if_then.ifs[0].then)
return infer_expression_type(expression.if_then.ifs[0].then, parent_schema)
elif rex_type == "switch_expression":
return infer_expression_type(expression.switch_expression.ifs[0].then)
return infer_expression_type(
expression.switch_expression.ifs[0].then, parent_schema
)
elif rex_type == "cast":
return expression.cast.type
elif rex_type == "singular_or_list" or rex_type == "multi_or_list":
Expand Down
Loading