lixueclaire commented on code in PR #634:
URL: https://github.com/apache/incubator-graphar/pull/634#discussion_r1816120294


##########
cpp/src/graphar/filesystem.cc:
##########
@@ -233,8 +233,13 @@ Status FileSystem::WriteTableToFile(const 
std::shared_ptr<arrow::Table>& table,
     break;
   }
   case FileType::PARQUET: {
+    auto schema = table->schema();
+    auto column_num = schema->num_fields();
     parquet::WriterProperties::Builder builder;
     builder.compression(arrow::Compression::type::ZSTD);  // enable compression
+    for (int i = 0; i < column_num; ++i) {

Review Comment:
   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?



##########
cpp/src/graphar/general_params.h:
##########
@@ -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";

Review Comment:
   Could we consider renaming the column to start with "_graphAr"?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to