[Fix](Variant) fix variant predicate rewrite OrToIn with wrong plan (#28695)
using the name without paths info will lead to wrong In plan, e.g.
```
where cast(v:a as text) = 'hello' or cast(v:b as text) = 'world'
```
will be rewrite to:
```
where cast(v as text) in ('hello', 'world')
``
This is wrong, because they are different slots
This commit is contained in:
@ -540,6 +540,9 @@ public class SlotRef extends Expr {
|
||||
}
|
||||
|
||||
public String getColumnName() {
|
||||
if (subColPath != null && !subColPath.isEmpty()) {
|
||||
return col + "." + String.join(".", subColPath);
|
||||
}
|
||||
return col;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user