-
Notifications
You must be signed in to change notification settings - Fork 46
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
[multi-label] add parameter 'label' for createinfos #634
Conversation
eed59c1
to
1e84029
Compare
This comment was marked as resolved.
This comment was marked as resolved.
1e84029
to
3f56896
Compare
3f56896
to
b04a0da
Compare
cpp/examples/bgl_example.cc
Outdated
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.
Modified the createinfo function in exmaples to add the label parameter. If there is no label, use an empty array as a placeholder.
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.
Same as above
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.
Same as above
cpp/CMakeLists.txt
Outdated
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.
add a test file for multi-label
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.
RLE coding for compress the space occupied
cpp/src/graphar/fwd.h
Outdated
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.
label parameter
cpp/src/graphar/util.cc
Outdated
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.
process arrow::boolean data
cpp/test/test_info.cc
Outdated
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.
same as the example files
6ec13f4
to
83b23d0
Compare
@lixueclaire Please review this Pull Request, which adds label in graph/vertexinfos:) |
cpp/src/graphar/filesystem.cc
Outdated
parquet::WriterProperties::Builder builder; | ||
builder.compression(arrow::Compression::type::ZSTD); // enable compression | ||
for (int i = 0; i < column_num; ++i) { |
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.
It appears that RLE encoding is currently applied to all columns. Could we adjust this so that RLE is used only on the label columns?
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.
for sure!
cpp/src/graphar/general_params.h
Outdated
@@ -27,6 +27,7 @@ struct GeneralParams { | |||
static constexpr const char* kDstIndexCol = "_graphArDstIndex"; | |||
static constexpr const char* kOffsetCol = "_graphArOffset"; | |||
static constexpr const char* kPrimaryCol = "_graphArPrimary"; | |||
static constexpr const char* kLabelCol = ":LABEL"; |
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.
Could we consider renaming the column to start with "_graphAr"?
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.
yes, use ":LABEL" because we want to keep the column names consistent with the csv, but of course we can change the name in the arrow table
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.
the usage example will be commited in next PR
83b23d0
to
f87900b
Compare
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.
LGTM now. Thanks for your contribution!
Thanks! Please help merge this PR, currently I don’t have write access😂 |
No description provided.