Skip to content

Added description field to RNTupleDescriptor::PrintInfo output#9313

Merged
jalopezg-git merged 4 commits intoroot-project:masterfrom
psairammohan:master
Dec 5, 2021
Merged

Added description field to RNTupleDescriptor::PrintInfo output#9313
jalopezg-git merged 4 commits intoroot-project:masterfrom
psairammohan:master

Conversation

@psairammohan
Copy link
Copy Markdown
Contributor

@psairammohan psairammohan commented Nov 19, 2021

This Pull request:

Added description field to the output of RNTupleDescriptor::PrintInfo by passing ENTupleInfo::kStorageDetails.
Here is an example output in which Vx is description is set to velocity in x direction. Vy description is not set. The result is as follows:

............................................................
  Vx[#0]  --  Int32                            {id:0}
    Description:         velocity in x direction 
    # Elements:          3354
    # Pages:             1
    Avg elements / page: 3354
    Avg page size:       5773 B
    Size on storage:     5773 B
    Compression:         2.32
............................................................
  Vy [#0]  --  Int32                            {id:1}
    # Elements:          3354
    # Pages:             1
    Avg elements / page: 3354
    Avg page size:       3132 B
    Size on storage:     3132 B
    Compression:         4.28
............................................................

Changes or fixes:

Changes RNTupleDescriptor::PrintInfo

Checklist:

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

This PR closes #8377

@phsft-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@psairammohan
Copy link
Copy Markdown
Contributor Author

Can anyone trigger the build and/or merge the pull request as @jblomer approved the changes. - @couet ,@jblomer ,@eguiraud ...

@eguiraud
Copy link
Copy Markdown
Contributor

@phsft-bot build

@phsft-bot
Copy link
Copy Markdown

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

@eguiraud
Copy link
Copy Markdown
Contributor

Hi @psairammohan ,
I started the build but I think we need the RNTuple devs, @jalopezg-r00t or @jblomer , to merge.

@phsft-bot
Copy link
Copy Markdown

Build failed on mac1015/python3.
Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-11-25T15:10:55.867Z] CMake Error at /Applications/CMake.app/Contents/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  • [2021-11-25T15:10:56.127Z] CMake Error at /Volumes/HD2/build/workspace/root-pullrequests-build/rootspi/jenkins/root-build.cmake:1128 (message):

@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.

Warnings:

  • [2021-11-25T15:16:11.970Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/mathtext/src/table/adobeglyphlist.h:128:44: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-25T15:16:11.970Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/mathtext/src/table/adobeglyphlist.h:128:55: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-25T15:21:10.132Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/postscript/src/AdobeGlyphList.h:110:44: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-25T15:21:10.132Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/postscript/src/AdobeGlyphList.h:110:55: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]

+ " -- " + Detail::RColumnElementBase::GetTypeName(col.fType);
std::string id = std::string("{id:") + std::to_string(col.fColumnId) + "}";
output << nameAndType << std::setw(60 - nameAndType.length()) << id << std::endl;
if(col.fFieldDescription != "")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not a hot path, but this should be slightly better:

Suggested change
if(col.fFieldDescription != "")
if (!col.fFieldDescription.empty())

Copy link
Copy Markdown
Contributor

@jalopezg-git jalopezg-git left a comment

Choose a reason for hiding this comment

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

Hi @psairammohan! Thanks for the contribution!
Just a tiny comment. :-)

@jalopezg-git
Copy link
Copy Markdown
Contributor

@psairammohan please, commit the suggested change in order to merge this as soon as possible. :-)

@jalopezg-git
Copy link
Copy Markdown
Contributor

@phsft-bot build

@phsft-bot
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@jalopezg-git jalopezg-git left a comment

Choose a reason for hiding this comment

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

LGTM.

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft11.dyndns.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Failing tests:

@jalopezg-git
Copy link
Copy Markdown
Contributor

@phsft-bot build just on windows10/cxx14

@phsft-bot
Copy link
Copy Markdown

Starting build on windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Failing tests:

@jalopezg-git
Copy link
Copy Markdown
Contributor

@jalopezg-git jalopezg-git merged commit 08ae392 into root-project:master Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ntuple] Add field description to RNTupleDescriptor::PrintInfo output?

5 participants