-
Notifications
You must be signed in to change notification settings - Fork 245
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
CLI to inspect lance dataset #231
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@@ -28,6 +28,7 @@ | |||
#include <string> | |||
|
|||
#include "lance/arrow/file_lance.h" | |||
#include "lance/arrow/utils.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used in io.cc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
cpp/src/lance/arrow/file_lance.cc
Outdated
@@ -21,6 +21,7 @@ | |||
#include <memory> | |||
|
|||
#include "lance/arrow/file_lance_ext.h" | |||
#include "lance/format/format.pb.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. it was due to some forward declaration during dev.
@@ -702,4 +702,24 @@ pb::Field::Type Field::GetNodeType() const { | |||
} | |||
} | |||
|
|||
void Print(const Field& field, const std::string& path, int indent = 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it make sense to print the storage type for extension types here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure can do
Writing in C++ to reuse lance code