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

fix: DMLCheckJoinFieldType rule not triggered #1892

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

winfredLIN
Copy link
Collaborator

#1888
fix func: getTableNameCreateTableStmtMap
problem: this function cannot get all of tables from a joinStmt

fix func: getOnConditionLeftAndRightType
problem: this function cannot get all of colume name from BinaryOperationExpr

temporary solution: supports mapping from table alias to table, but the table can only consist of one table

@winfredLIN

fix func: getTableNameCreateTableStmtMap
problem: this function cannot get all of table from a joinStmt

fix func: getOnConditionLeftAndRightType
problem: this function cannot fit all of colume name from BinaryOperationExpr

temporary solution: supports mapping from table alias to table, but the table can only consist of one table

@winfredLIN
@winfredLIN winfredLIN requested review from taolx0, sjjian and ColdWaterLW and removed request for taolx0 and sjjian October 8, 2023 07:32
1. rule does not support explicit conversion, when there is an explicit conversion, it cannot be judged based on the converted type.
2. the table in the JOIN of rule is composed of multiple tables, column name cannot be used to indexed to the correct table.

@winfredLIN
the connection key contains multiple columns and does not trigger

@winfredLIN
@ColdWaterLW ColdWaterLW merged commit a7e2523 into actiontech:main Oct 9, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants