File tree 2 files changed +9
-3
lines changed
parser/transform/expression
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef DUCKDB_PATCH_VERSION
2
- #define DUCKDB_PATCH_VERSION " 2-dev156 "
2
+ #define DUCKDB_PATCH_VERSION " 2-dev158 "
3
3
#endif
4
4
#ifndef DUCKDB_MINOR_VERSION
5
5
#define DUCKDB_MINOR_VERSION 10
8
8
#define DUCKDB_MAJOR_VERSION 0
9
9
#endif
10
10
#ifndef DUCKDB_VERSION
11
- #define DUCKDB_VERSION " v0.10.2-dev156 "
11
+ #define DUCKDB_VERSION " v0.10.2-dev158 "
12
12
#endif
13
13
#ifndef DUCKDB_SOURCE_ID
14
- #define DUCKDB_SOURCE_ID " ef62c27528 "
14
+ #define DUCKDB_SOURCE_ID " bf050db984 "
15
15
#endif
16
16
#include " duckdb/function/table/system_functions.hpp"
17
17
#include " duckdb/main/database.hpp"
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ unique_ptr<ParsedExpression> Transformer::TransformSubquery(duckdb_libpgquery::P
69
69
vector<unique_ptr<ParsedExpression>> children;
70
70
children.push_back (std::move (columns_star));
71
71
auto aggr = make_uniq<FunctionExpression>(" array_agg" , std::move (children));
72
+ for (auto &modifier : subquery_expr->subquery ->node ->modifiers ) {
73
+ if (modifier->type == ResultModifierType::ORDER_MODIFIER) {
74
+ aggr->order_bys = unique_ptr_cast<ResultModifier, OrderModifier>(modifier->Copy ());
75
+ break ;
76
+ }
77
+ }
72
78
// ARRAY_AGG(COLUMNS(*)) IS NULL
73
79
auto agg_is_null = make_uniq<OperatorExpression>(ExpressionType::OPERATOR_IS_NULL, aggr->Copy ());
74
80
// empty list
You can’t perform that action at this time.
0 commit comments