Skip to content
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

Rename aggregate_metadata in writer to fix name collision #9938

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cpp/src/io/parquet/writer_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ parquet::Compression to_parquet_compression(compression_type compression)

} // namespace

struct aggregate_metadata {
aggregate_metadata(std::vector<partition_info> const& partitions,
size_type num_columns,
std::vector<SchemaElement> schema,
statistics_freq stats_granularity,
std::vector<std::map<std::string, std::string>> const& kv_md)
struct aggregate_writer_metadata {
aggregate_writer_metadata(std::vector<partition_info> const& partitions,
size_type num_columns,
std::vector<SchemaElement> schema,
statistics_freq stats_granularity,
std::vector<std::map<std::string, std::string>> const& kv_md)
: version(1), schema(std::move(schema)), files(partitions.size())
{
for (size_t i = 0; i < partitions.size(); ++i) {
Expand Down Expand Up @@ -1226,7 +1226,7 @@ void writer::impl::write(table_view const& table, std::vector<partition_info> co
std::vector<SchemaElement> this_table_schema(schema_tree.begin(), schema_tree.end());

if (!md) {
md = std::make_unique<aggregate_metadata>(
md = std::make_unique<aggregate_writer_metadata>(
partitions, num_columns, std::move(this_table_schema), stats_granularity_, kv_md);
} else {
// verify the user isn't passing mismatched tables
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/io/parquet/writer_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace detail {
namespace parquet {
// Forward internal classes
struct parquet_column_view;
struct aggregate_metadata;
struct aggregate_writer_metadata;

using namespace cudf::io::parquet;
using namespace cudf::io;
Expand Down Expand Up @@ -214,7 +214,7 @@ class writer::impl {
statistics_freq stats_granularity_ = statistics_freq::STATISTICS_NONE;
bool int96_timestamps = false;
// Overall file metadata. Filled in during the process and written during write_chunked_end()
std::unique_ptr<aggregate_metadata> md;
std::unique_ptr<aggregate_writer_metadata> md;
// File footer key-value metadata. Written during write_chunked_end()
std::vector<std::map<std::string, std::string>> kv_md;
// optional user metadata
Expand Down