You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of the Polars CLI.
Reproducible example
# generate test.csv
cat<<EOF > test.csvatesttesttest2test3EOF# run group by queryecho"SELECT COUNT(*) AS _count, a FROM read_csv('test.csv') GROUP BY a;"| polars
COUNT(*) is seemingly counting all rows, instead of using the group by.
Expected behavior
importpolarsaspldf=pl.read_csv('test.csv')
withpl.SQLContext(register_globals=True, eager=True) asctx:
df_small=ctx.execute("SELECT COUNT(*) AS _count, a FROM df GROUP BY a")
print(df_small)
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of the Polars CLI.
Reproducible example
Output
Issue description
COUNT(*)
is seemingly counting all rows, instead of using the group by.Expected behavior
Installed version
0.8.0
The text was updated successfully, but these errors were encountered: