File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ const generateSimpleTimeSeriesQuery = (_options: QueryBuilderOptions): string =>
377377 }
378378
379379 if ( ( options . groupBy ?. length || 0 ) > 0 ) {
380- const groupByTime = timeColumn !== undefined ? `, ${ timeColumn . name } ` : '' ;
380+ const groupByTime = timeColumn !== undefined ? `, ${ timeColumn . columnName || timeColumn . name } ` : '' ;
381381 queryParts . push ( `${ options . groupBy ! . join ( ', ' ) } ${ groupByTime } ` ) ;
382382 } else if ( hasAggregates && timeColumn ) {
383383 queryParts . push ( timeColumn . name ! ) ;
@@ -648,7 +648,7 @@ const getOrderBy = (options: QueryBuilderOptions): string => {
648648 let colName = o . name ;
649649 const hintedColumn = o . hint && getColumnByHint ( options , o . hint ) ;
650650 if ( hintedColumn ) {
651- colName = hintedColumn . alias || hintedColumn . name ;
651+ colName = hintedColumn . columnName || hintedColumn . name ;
652652 }
653653
654654 if ( ! colName ) {
You can’t perform that action at this time.
0 commit comments