kosiew opened a new issue, #19950:
URL: https://github.com/apache/datafusion/issues/19950
## Summary
`UPDATE ... FROM` is not successfully applied joined column values.
## Repro steps
1) Via `datafusion-cli`, run these lines manually to see the stale updates:
```sql
create table t1(a int, b varchar, c double, d int);
create table t2(a int, b varchar, c double, d int);
insert into t1 values (1, 'zoo', 2.0, 10), (2, 'qux', 3.0, 20), (3, 'bar',
4.0, 30);
insert into t2 values (1, 'updated_b', 5.0, 40), (2, 'updated_b2', 2.5,
50), (4, 'updated_b3', 1.5, 60);
update t1 set b = t2.b, c = t2.a, d = 1 from t2 where t1.a = t2.a and t1.b
> 'foo' and t2.c > 1.0;
select * from t1 order by a;
```
### Actual
```
+---+-----+-----+----+
| a | b | c | d |
+---+-----+-----+----+
| 1 | zoo | 1.0 | 1 |
| 2 | qux | 2.0 | 1 |
| 3 | bar | 4.0 | 30 |
+---+-----+-----+----+
3 row(s) fetched.
```
#### Expected
```
+---+------------+-----+----+
| a | b | c | d |
+---+------------+-----+----+
| 1 | updated_b | 1.0 | 1 |
| 2 | updated_b2 | 2.0 | 1 |
| 3 | bar | 4.0 | 30 |
+---+------------+-----+----+
3 row(s) fetched.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]