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

[Bug] [跨表准确性检查] 表别名超过数据库限制 #494

Open
1 of 2 tasks
anan0120 opened this issue Jan 14, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] [跨表准确性检查] 表别名超过数据库限制 #494

anan0120 opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@anan0120
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

测试数据源:oracle
跨表准确性检查
1、当Oracle表名太长,再拼数据库+表名+数字,表名超过数据库限制
SELECT '1' AS id FROM dual database_F_1111111_11111111_RECORD_1
报错内容:SQL 错误 [972] [42000]: ORA-00972: 标识符过长
2、当比较字段是数字类型使时,用coalesce准换报错
SELECT * FROM (SELECT 1 AS id1,2 AS id2 FROM dual) WHERE coalesce(id1, '')=coalesce(id2, '')
报错内容:ORA-00932: 数据类型不一致: 应为 NUMBER, 但却获得 CHAR

    3、希望支持自定义SQL,这样两个表对比会更灵活

DataVines Version

datavines-release-1.0.0-rc

DataVines Config

详情见:what happened.

Running Command

详情见:what happened.

Error Exception

详情见:what happened.

Engine Type

No response

Java Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@anan0120 anan0120 added the bug Something isn't working label Jan 14, 2025
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

No branches or pull requests

1 participant