Skip to content

Commit

Permalink
fix: time grain was omitted in pivot table
Browse files Browse the repository at this point in the history
  • Loading branch information
etokiryau committed Feb 5, 2025
1 parent 02c3e0e commit 65bc2d0
Showing 1 changed file with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import omit from 'lodash/omit';
// DODO was here
// import omit from 'lodash/omit';

import {
AdhocColumn,
Expand Down Expand Up @@ -72,9 +55,7 @@ export default function buildQuery(formData: PivotTableQueryFormData) {
}
return [
{
...(hasGenericChartAxes
? omit(baseQueryObject, ['extras.time_grain_sqla'])
: baseQueryObject),
...baseQueryObject, // DODO changed 45236258
orderby: orderBy,
columns,
},
Expand Down

0 comments on commit 65bc2d0

Please # to comment.