Skip to content

[RDFD][Fix #7205] Print() now indicates non-fitting columns#9124

Merged
eguiraud merged 1 commit intoroot-project:masterfrom
ikabadzhov:RDF_Display_Columns
Oct 19, 2021
Merged

[RDFD][Fix #7205] Print() now indicates non-fitting columns#9124
eguiraud merged 1 commit intoroot-project:masterfrom
ikabadzhov:RDF_Display_Columns

Conversation

@ikabadzhov
Copy link
Copy Markdown
Contributor

@ikabadzhov ikabadzhov commented Oct 15, 2021

This Pull request: [RDFD][Fix #7205] Print() now indicates non-fitting columns

Changes or fixes:

In case of tables of many columns, Print() now have a right-most
column of dots (...). Moreover, the user will be notified with an
info message as well.

Print() guarantees that at least 1 column of the table is displayed
(regardless the width of the first column).

The default maximum allowed width of the table is increased to 100
(from 80).

New tests written to check the behaviour of wide tables.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #7205

@ikabadzhov ikabadzhov requested a review from eguiraud as a code owner October 15, 2021 07:35
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@eguiraud
Copy link
Copy Markdown
Contributor

Great, I'll take a look as soon as possible!

Copy link
Copy Markdown
Contributor

@eguiraud eguiraud left a comment

Choose a reason for hiding this comment

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

Changes look good and the extra test coverage is great, thank you very much!
Just some minor comments inline, and the commit message has a typo, [RDFD] should be [DF].

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

1 similar comment
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-ubuntu16/nortcxxmod.
Running on sft-ubuntu-1604-1.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-performance-centos8-multicore/default.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-ubuntu2004/soversion.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

Copy link
Copy Markdown
Contributor

@eguiraud eguiraud left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Ivan!

Before merging please do 2 last things:

  • give a git clang-format pass (just on your changes, not the whole file)
  • squash all commits into one, and fix the commit message to use the tag [DF] instead of [RDFD]

In case of tables of many columns, Print() now have a right-most
column of dots (...). Moreover, the user will be notified with an
info message as well.

Print() guarantees that at least 1 column of the table is displayed
(regardless the width of the first column).

The default maximum allowed width of the table is increased to 100
(from 80).

New tests written to check the behaviour of wide tables.
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@ikabadzhov
Copy link
Copy Markdown
Contributor Author

@eguiraud done

@phsft-bot
Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@eguiraud eguiraud merged commit fa5ce32 into root-project:master Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RDataFrame::Display should display all requested columns

3 participants