Jackie-Jiang commented on a change in pull request #7839:
URL: https://github.com/apache/pinot/pull/7839#discussion_r767032955
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/common/datatable/DataTableUtils.java
##########
@@ -107,6 +108,34 @@ public static DataTable buildEmptyDataTable(QueryContext
queryContext)
}
}
+ public static DataTable buildMetadataOnlyDataTable(DataTable origDataTable) {
Review comment:
The data in `DataTable` is actually immutable, only the metadata is
mutable. For `toMetadataOnlyDataTable()`, we create a new data table and only
keep the metadata; for `toDataOnlyDataTable()`, we create a new data table with
all the data fields but replace the metadata map with an empty map. wdyt?
--
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]