Skip to content

Commit

Permalink
DecimalQuantiles: Move QuantileSerializationType to separate header
Browse files Browse the repository at this point in the history
Previous one was autogenerated
  • Loading branch information
carlopi committed Nov 13, 2023
1 parent fbd8d70 commit ed95d09
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/common/enum_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#include "duckdb/common/types/timestamp.hpp"
#include "duckdb/common/types/vector.hpp"
#include "duckdb/common/types/vector_buffer.hpp"
#include "duckdb/core_functions/aggregate/holistic_functions.hpp"
#include "duckdb/core_functions/aggregate/quantile_enum.hpp"
#include "duckdb/execution/index/art/art.hpp"
#include "duckdb/execution/index/art/node.hpp"
#include "duckdb/execution/operator/scan/csv/base_csv_reader.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/core_functions/aggregate/holistic/quantile.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "duckdb/execution/expression_executor.hpp"
#include "duckdb/core_functions/aggregate/holistic_functions.hpp"
#include "duckdb/core_functions/aggregate/quantile_enum.hpp"
#include "duckdb/planner/expression.hpp"
#include "duckdb/common/operator/cast_operators.hpp"
#include "duckdb/common/operator/abs.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,4 @@ struct ReservoirQuantileFun {
static AggregateFunctionSet GetFunctions();
};

enum class QuantileSerializationType : uint8_t {
NON_DECIMAL = 0,
DECIMAL_DISCRETE,
DECIMAL_DISCRETE_LIST,
DECIMAL_CONTINUOUS,
DECIMAL_CONTINUOUS_LIST
};

} // namespace duckdb
21 changes: 21 additions & 0 deletions src/include/duckdb/core_functions/aggregate/quantile_enum.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/core_functions/aggregate/quantile_enum.hpp
//
//
//===----------------------------------------------------------------------===//

#pragma once

namespace duckdb {

enum class QuantileSerializationType : uint8_t {
NON_DECIMAL = 0,
DECIMAL_DISCRETE,
DECIMAL_DISCRETE_LIST,
DECIMAL_CONTINUOUS,
DECIMAL_CONTINUOUS_LIST
};

}

0 comments on commit ed95d09

Please sign in to comment.