PetarVasiljevic-DB commented on PR #48625:
URL: https://github.com/apache/spark/pull/48625#issuecomment-2450307979

   array_ndims will return the dimension of the value in specific row. In 
Postgres it is possible to insert different dimensionality array into the 
column with predefined array dimension. Therefore, in such case, different rows 
will give different value of array_ndims. 
   
   For CTAS tables, if there are various dimensionality values than I would say 
it is kinda fine that Postgres doesn't update meta table since it's not 
deterministic, but if all the values have same dimensionality (and same as the 
dimension read from meta for old table) then meta table should have that 
information but it actually doesn't.
   
   LMK if I haven't answered to your question.


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