Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
da730 committed Mar 26, 2024
1 parent 20d2bf4 commit a82e140
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/vmind/src/gpt/dataProcess/query/astPipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ import {
FilterNode,
FilterNodeType,
FilterOperator,
HavingCondition,
OrderType,
Query,
WhereCondition,
WhereFilterNode
WhereCondition
} from '@visactor/calculator';
import { ASTParserContext, ASTParserPipe, SQLAst } from './type';
import { checkIsColumnNode, replaceString, toFirstUpperCase } from './utils';
import { ASTParserContext, ASTParserPipe } from './type';
import { checkIsColumnNode, toFirstUpperCase } from './utils';
import { SimpleFieldInfo } from '../../../typings';
import { isArray } from 'lodash';
import { replaceString } from '../../../common/dataProcess/utils';

export const from: ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => {
const { dataSource, fieldInfo } = context;
Expand Down Expand Up @@ -141,7 +140,7 @@ export const groupBy: ASTParserPipe = (query: Partial<Query>, context: ASTParser
return {
...query,
groupBy: (groupby ?? []).map((group: any) => replaceString(group.column ?? group.value, replaceMap))
};
} as any;
};

export const select: ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => {
Expand Down

0 comments on commit a82e140

Please sign in to comment.