We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0a656 commit b507c37Copy full SHA for b507c37
src/substrait/type_inference.py
@@ -191,9 +191,11 @@ def infer_expression_type(
191
elif rex_type == "window_function":
192
return expression.window_function.output_type
193
elif rex_type == "if_then":
194
- return infer_expression_type(expression.if_then.ifs[0].then)
+ return infer_expression_type(expression.if_then.ifs[0].then, parent_schema)
195
elif rex_type == "switch_expression":
196
- return infer_expression_type(expression.switch_expression.ifs[0].then)
+ return infer_expression_type(
197
+ expression.switch_expression.ifs[0].then, parent_schema
198
+ )
199
elif rex_type == "cast":
200
return expression.cast.type
201
elif rex_type == "singular_or_list" or rex_type == "multi_or_list":
0 commit comments