nastra commented on PR #19277:
URL: https://github.com/apache/iceberg/pull/19277#issuecomment-7372932943

   > Thanks @nastra, nice comparison table for how engines handle the 
FIRST/AFTER syntax. One question on the approach: since the query column names 
are already saved with the view, should we bind by name like Spark 4.2 and 
Spark session-catalog views do? With this PR, the same view works in 4.2 but 
fails in 4.1 after an ADD COLUMN ... FIRST. Would it be better to keep the 
behavior consistent between 4.1 and 4.2?
   
   @huaxingao I was thinking about switching to that and align with Spark 4.2, 
but back when we were implementing View support we deliberately chose to bind 
by ordinal position. However, back then I wasn't even aware about the 
`FIRST`/`AFTER` syntax and so that edge was never tested. I think we might want 
to keep binding by ordinal position at least for those affected versions, but 
I'd like to hear more opinions from folks. /cc @rdblue @danielcweeks 
@amogh-jahagirdar @pvary @RussellSpitzer 


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