Skip to content

Commit

Permalink
get column names that will appear in concat without instantiating
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBond committed Nov 27, 2024
1 parent 4b3621b commit d4a7daa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions splink/internals/term_frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def _join_tf_to_df_concat_sql(linker: Linker) -> str:
tbl = colname_to_tf_tablename(col)
select_cols.append(f"{tbl}.{col.tf_name}")

input_columns = linker._input_columns()
column_names_in_df_concat = linker._concat_table_column_names

aliased_concat_column_names = [
f"__splink__df_concat.{col.name} AS {col.name}" for col in input_columns
f"__splink__df_concat.{col} AS {col}" for col in column_names_in_df_concat
]

select_cols = aliased_concat_column_names + select_cols
Expand Down

0 comments on commit d4a7daa

Please sign in to comment.