Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.15.9
hooks:
- id: ruff
language_version: python3.12
args: [ --fix, --exit-non-zero-on-fix]
- id: ruff-format
language_version: python3.12
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.19.1'
rev: 'v1.20.0'
hooks:
- id: mypy
args: [--check-untyped-defs, --ignore-missing-imports]
Expand Down
6 changes: 4 additions & 2 deletions pydough/conversion/filter_pushdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ def visit_join(self, join: Join) -> RelationalNode:
# they are false if the input is null.
pushable_filters, remaining_filters = partition_expressions(
remaining_filters,
lambda expr: only_references_columns(expr, input_cols[idx])
and false_when_null_columns(expr, input_cols[idx]),
lambda expr: (
only_references_columns(expr, input_cols[idx])
and false_when_null_columns(expr, input_cols[idx])
),
)
else:
pushable_filters, remaining_filters = partition_expressions(
Expand Down
6 changes: 3 additions & 3 deletions pydough/sqlglot/override_qualify.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@ def qualify_columns_func(
# In Snowflake / Oracle queries that have a CONNECT BY clause, one can use the LEVEL
# pseudocolumn, which doesn't belong to a table, so we change it into an identifier
scope_expression.transform(
lambda n: n.this
if isinstance(n, exp.Column) and n.name == "LEVEL"
else n,
lambda n: (
n.this if isinstance(n, exp.Column) and n.name == "LEVEL" else n
),
copy=False,
)
scope.clear_cache()
Expand Down
2 changes: 1 addition & 1 deletion pydough/user_collections/view_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
self._is_replace = is_replace
self._is_temp = is_temp
# Default to all columns as the unique key if not specified
self._unique_columns = (
self._unique_columns: list[str | list[str]] = (
unique_columns if unique_columns is not None else [columns]
)
self._write_path = write_path
Expand Down
Loading