airbnb/caravel

View on GitHub
superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function buildQuery has 39 lines of code (exceeds 25 allowed). Consider refactoring.
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:

    There are no issues that match your filters.

    Category
    Status