Skip to content

Commit

Permalink
Avoid object cast (#1464)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Jetter <[email protected]>
  • Loading branch information
phofl and fjetter authored Apr 18, 2024
1 parent a1850d1 commit 46f0a3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/tpch/dask_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def query_2(dataset_path, fs, scale):
partsupp_filtered, left_on="s_suppkey", right_on="ps_suppkey", how="inner"
)
part_filtered = part_filtered[
(part_filtered["p_size"] == var1)
& (part_filtered["p_type"].astype(str).str.endswith(var2))
(part_filtered["p_size"] == var1) & (part_filtered["p_type"].str.endswith(var2))
]
merged_df = part_filtered.merge(
ps_s_r_n_merged, left_on="p_partkey", right_on="ps_partkey", how="inner"
Expand Down

0 comments on commit 46f0a3e

Please sign in to comment.