File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
parser/transform/expression Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11#ifndef DUCKDB_PATCH_VERSION
2- #define DUCKDB_PATCH_VERSION " 2-dev156 "
2+ #define DUCKDB_PATCH_VERSION " 2-dev158 "
33#endif
44#ifndef DUCKDB_MINOR_VERSION
55#define DUCKDB_MINOR_VERSION 10
88#define DUCKDB_MAJOR_VERSION 0
99#endif
1010#ifndef DUCKDB_VERSION
11- #define DUCKDB_VERSION " v0.10.2-dev156 "
11+ #define DUCKDB_VERSION " v0.10.2-dev158 "
1212#endif
1313#ifndef DUCKDB_SOURCE_ID
14- #define DUCKDB_SOURCE_ID " ef62c27528 "
14+ #define DUCKDB_SOURCE_ID " bf050db984 "
1515#endif
1616#include " duckdb/function/table/system_functions.hpp"
1717#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
6969 vector<unique_ptr<ParsedExpression>> children;
7070 children.push_back (std::move (columns_star));
7171 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+ }
7278 // ARRAY_AGG(COLUMNS(*)) IS NULL
7379 auto agg_is_null = make_uniq<OperatorExpression>(ExpressionType::OPERATOR_IS_NULL, aggr->Copy ());
7480 // empty list
You can’t perform that action at this time.
0 commit comments