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

QLExpress3 历史问题修复 #185

Open
1 of 2 tasks
DQinYuan opened this issue Mar 18, 2022 · 2 comments
Open
1 of 2 tasks

QLExpress3 历史问题修复 #185

DQinYuan opened this issue Mar 18, 2022 · 2 comments

Comments

@DQinYuan
Copy link
Collaborator

DQinYuan commented Mar 18, 2022

QLExpress3 积攒了比较多的历史问题,这里列举额如下:

  • 高精度计算溢出问题(除了这里列举的场景外还有很多有问题的场景,需要一一排查下)
String evalExpress = "a*2";

final ExpressRunner runner = new ExpressRunner(true, true);

DefaultContext<String, Object> nameMap = new DefaultContext<String, Object>();

nameMap.put("a", new BigDecimal(Long.MAX_VALUE));

// 结果为 -2
Object obj = runner.execute(evalExpress, nameMap, null, false, true);
  • 注释解析问题

参考 #337

@yuanjianchen
Copy link

是不是可以提供一个支持分数运算的逻辑

@DQinYuan
Copy link
Collaborator Author

DQinYuan commented Aug 2, 2024

@yuanjianchen 可以详细阐述下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants