superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts
Function buildQuery
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function buildQuery(formData: QueryFormData) {
const { groupby } = formData;
return buildQueryContext(formData, baseQueryObject => {
/* the `pivotOperatorInRuntime` determines how to pivot the dataframe returned from the raw query.
1. If it's a time compared query, there will return a pivoted dataframe that append time compared metrics. for instance: