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] Better List type repr in dataframes Fixes#994 #1072

Closed
wants to merge 6 commits into from

Conversation

khandelwalarvind26
Copy link

This removes the intermediate column name and directly uses the result column name which skips the addition of the child field name such as _local_list in the case of list aggregations. This completely omits the display of the local op performed.

@khandelwalarvind26 khandelwalarvind26 changed the title Better List type repr in dataframes Better List type repr in dataframes Fixes#994 Jun 21, 2023
@khandelwalarvind26 khandelwalarvind26 changed the title Better List type repr in dataframes Fixes#994 [BUG] Better List type repr in dataframes Fixes#994 Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #1072 (e1f3659) into main (cb1bf51) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1072      +/-   ##
==========================================
- Coverage   88.46%   88.46%   -0.01%     
==========================================
  Files          54       54              
  Lines        5463     5462       -1     
==========================================
- Hits         4833     4832       -1     
  Misses        630      630              
Impacted Files Coverage Δ
daft/logical/aggregation_plan_builder.py 95.69% <100.00%> (-0.05%) ⬇️

@jaychia jaychia added the bug Something isn't working label Jun 21, 2023
@jaychia
Copy link
Contributor

jaychia commented Jun 23, 2023

Thanks @khandelwalarvind26!

I am a little concerned that removing the intermediate column name might affect the results of the query. Could we not modify the repr logic of the List type directly instead to just not display the child type (as per: #994)?

@jaychia jaychia closed this Sep 25, 2023
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