chore: python version to 3.11 (while supporting 3.10) (#31503)

This commit is contained in:
Maxime Beauchemin
2025-01-13 18:22:49 -08:00
committed by GitHub
parent 855011360a
commit 274aa143d3
31 changed files with 60 additions and 47 deletions

View File

@@ -1507,7 +1507,7 @@ def test_insert_rls_as_subquery(
else candidate_table.table
)
for left, right in zip(
candidate_table_name.split(".")[::-1], table.split(".")[::-1]
candidate_table_name.split(".")[::-1], table.split(".")[::-1], strict=False
):
if left != right:
return None
@@ -1719,7 +1719,9 @@ def test_insert_rls_in_predicate(
Return the RLS ``condition`` if ``candidate`` matches ``table``.
"""
# compare ignoring schema
for left, right in zip(str(candidate).split(".")[::-1], table.split(".")[::-1]):
for left, right in zip(
str(candidate).split(".")[::-1], table.split(".")[::-1], strict=False
):
if left != right:
return None
return condition