Skip to content

Commit

Permalink
Don't use value keyword as name
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-glover committed Feb 12, 2025
1 parent 7d5e151 commit 98af812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycds/alembic/change_history_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def populate_history_table(
ft_cte_defns = tuple(
f"""
{cte_name} AS (
SELECT {ft_pk_name}, max({hx_id_name(ft_table_name)}) value
SELECT {ft_pk_name}, max({hx_id_name(ft_table_name)}) val
FROM {hx_table_name(ft_table_name)}
GROUP BY {ft_pk_name}
)
Expand All @@ -160,7 +160,7 @@ def populate_history_table(
)
ft_cte_list = ", ".join(ft_cte_defns)

ft_cte_value_list = ", ".join(f"{cte_name}.value" for cte_name in ft_cte_names)
ft_cte_value_list = ", ".join(f"{cte_name}.val" for cte_name in ft_cte_names)

ft_where_conditions = tuple(
f"main.{ft_pk_name} = {cte_name}.{ft_pk_name}"
Expand Down

0 comments on commit 98af812

Please sign in to comment.