Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fix count("*") behavior #2733

Merged
merged 3 commits into from
Aug 27, 2024
Merged

[BUG] Fix count("*") behavior #2733

merged 3 commits into from
Aug 27, 2024

Conversation

Vince7778
Copy link
Contributor

By adding wildcard expansion, this started expanding out into all columns, which is not the expected behavior from SQL.

@Vince7778 Vince7778 requested a review from jaychia August 27, 2024 00:31
@github-actions github-actions bot added the bug Something isn't working label Aug 27, 2024
Copy link

codspeed-hq bot commented Aug 27, 2024

CodSpeed Performance Report

Merging #2733 will not alter performance

Comparing conor/count-star (44b4a79) with main (9e8506e)

Summary

✅ 17 untouched benchmarks


>>> import daft
>>> df = daft.from_pydict({"foo": [1, None, None], "bar": [None, 2, 2]})
>>> from daft import col
>>> df = daft.from_pydict({"foo": [1, None, None], "bar": [None, 2, 2], "baz": [3, 4, 5]})
>>> df.count().show()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment here that this is equivalent to df.count("*")?

@Vince7778 Vince7778 enabled auto-merge (squash) August 27, 2024 19:25
@Vince7778 Vince7778 merged commit 1ca205f into main Aug 27, 2024
46 checks passed
@Vince7778 Vince7778 deleted the conor/count-star branch August 27, 2024 19:41
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@457289b). Learn more about missing BASE report.
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2733   +/-   ##
=======================================
  Coverage        ?   63.37%           
=======================================
  Files           ?      981           
  Lines           ?   113258           
  Branches        ?        0           
=======================================
  Hits            ?    71777           
  Misses          ?    41481           
  Partials        ?        0           
Files Coverage Δ
daft/dataframe/dataframe.py 85.92% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants