ntjohnson1 commented on issue #1305:
URL: 
https://github.com/apache/datafusion-python/issues/1305#issuecomment-3649891506

   I'm traveling all day today so I can't think carefully on this. I'd be fine 
with this approach if it didn't require the select_exprs since that feels a 
little unergonomic. The need to track the data frame names separately from the 
variable seems unfortunate.
   
   I'd like to instead do `df.select(F.coalesce(df1.col("num"), 
df2.col("num")).alias("num")` unfortunately I don't think we currently have a 
syntax like that (or a nice alternative) to dedup columns that have the same 
name.
   
   So if there was a way to resolve the columns without a specially crafted 
string I think the proposed direction seems reasonable. 


-- 
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]

Reply via email to