Skip to content

Commit b8ada5e

Browse files
committed
apply fix
1 parent a38f76e commit b8ada5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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)

tests/expressions/test_pyparsing_warning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import pyiceberg.table as table
2323

2424

25-
def test_table_import_without_pyparsing_diagnostic_warning() -> None:
25+
def test_table_import_has_no_ungrouped_named_tokens_warning() -> None:
2626
diagnostic = pp.Diagnostics.warn_ungrouped_named_tokens_in_collection
2727
was_enabled = pp.__diag__.warn_ungrouped_named_tokens_in_collection
2828

0 commit comments

Comments
 (0)