Slackbot
10/17/2023, 10:49 AMJohn Kowtko
10/17/2023, 11:53 AMreplace into Foo overwrite all
select f.__time, f.A, b.C
from Foo f
join Bar b on f.__time = b.__time
partitioned by all
This of course assumes time is the PK for both tables and they are completely matching.
If they are not completely matching but still unique, then you can use full outer join and in your select list use coalesce(f.time, b.time) instead of just f.__time to pull the time field from either table.
===
An alternate method would be to create a lookup table for Bar and use the lookup() function instead of a regular join ... I don't know how the performance would compare to join though ... and as a lookup you would for sure be subject to the broadcast size limits.lnault
10/17/2023, 12:06 PMJohn Kowtko
10/17/2023, 12:09 PMlnault
10/17/2023, 12:13 PMJohn Kowtko
10/17/2023, 12:31 PMlnault
10/17/2023, 12:35 PM