acezen commented on code in PR #610:
URL: https://github.com/apache/incubator-graphar/pull/610#discussion_r1741628698
##########
cpp/src/graphar/arrow/chunk_writer.cc:
##########
@@ -251,6 +252,25 @@ Status VertexPropertyWriter::WriteChunk(
return Status::OK();
}
+Status VertexPropertyWriter::WriteLabelChunk(
+ const std::shared_ptr<arrow::Table>& input_table,
+ IdType chunk_index, FileType file_type,
+ ValidateLevel validate_level) const {
+ auto schema = input_table->schema();
+ int indice = schema->GetFieldIndex(GeneralParams::kVertexIndexCol);
+ std::vector<int> indices;
+ for(int i=0; i<schema->num_fields(); i++){
Review Comment:
Is this would select all column?
##########
cpp/src/graphar/arrow/chunk_writer.cc:
##########
@@ -251,6 +252,25 @@ Status VertexPropertyWriter::WriteChunk(
return Status::OK();
}
+Status VertexPropertyWriter::WriteLabelChunk(
+ const std::shared_ptr<arrow::Table>& input_table,
+ IdType chunk_index, FileType file_type,
+ ValidateLevel validate_level) const {
+ auto schema = input_table->schema();
+ int indice = schema->GetFieldIndex(GeneralParams::kVertexIndexCol);
+ std::vector<int> indices;
+ for(int i=0; i<schema->num_fields(); i++){
Review Comment:
Is this would select all columns?
--
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]