Skip to content

Commit 6daa4d7

Browse files
committed
add fix
1 parent 11914ef commit 6daa4d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyiceberg/expressions/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _(result: ParseResults) -> Reference:
103103
return Reference(".".join(result.column))
104104

105105

106-
boolean = one_of(["true", "false"], caseless=True).set_results_name("boolean")
106+
boolean = one_of(["true", "false"], caseless=True)
107107
string = sgl_quoted_string.set_results_name("raw_quoted_string")
108108
decimal = common.real().set_results_name("decimal")
109109
integer = common.signed_integer().set_results_name("integer")
@@ -115,7 +115,7 @@ def _(result: ParseResults) -> Reference:
115115

116116
@boolean.set_parse_action
117117
def _(result: ParseResults) -> Literal[bool]:
118-
if strtobool(result.boolean):
118+
if strtobool(result[0]):
119119
return BooleanLiteral(True)
120120
else:
121121
return BooleanLiteral(False)

0 commit comments

Comments
 (0)