We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11914ef commit 6daa4d7Copy full SHA for 6daa4d7
1 file changed
pyiceberg/expressions/parser.py
@@ -103,7 +103,7 @@ def _(result: ParseResults) -> Reference:
103
return Reference(".".join(result.column))
104
105
106
-boolean = one_of(["true", "false"], caseless=True).set_results_name("boolean")
+boolean = one_of(["true", "false"], caseless=True)
107
string = sgl_quoted_string.set_results_name("raw_quoted_string")
108
decimal = common.real().set_results_name("decimal")
109
integer = common.signed_integer().set_results_name("integer")
@@ -115,7 +115,7 @@ def _(result: ParseResults) -> Reference:
115
116
@boolean.set_parse_action
117
def _(result: ParseResults) -> Literal[bool]:
118
- if strtobool(result.boolean):
+ if strtobool(result[0]):
119
return BooleanLiteral(True)
120
else:
121
return BooleanLiteral(False)
0 commit comments