Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图表中包含计算字段时,弹出 toLocaleLowerCase 错误 #676

Closed
luying17 opened this issue Jan 25, 2022 · 0 comments · Fixed by #683
Closed

图表中包含计算字段时,弹出 toLocaleLowerCase 错误 #676

luying17 opened this issue Jan 25, 2022 · 0 comments · Fixed by #683
Assignees
Labels
bug Something isn't working

Comments

@luying17
Copy link

Datart版本号
声明一下你正在使用的 datart 版本号
dev

错误描述
清晰简洁地描述这个错误
图表制作时,如果存在计算字段,弹窗报错

截图
360截图20220125101410015

其他内容
原因如下:计算字段无 sqlOperator 属性,导致报错
// 兼容 impala 聚合函数小写问题
export const filterSqlOperatorName = (requestParams, widgetData) => {
const sqlOperatorNameList = requestParams.aggregators.map(({ sqlOperator }) =>
sqlOperator.toLocaleLowerCase(),
);

@scottsut scottsut added the bug Something isn't working label Jan 25, 2022
@scottsut scottsut linked a pull request Jan 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants