jayzhan211 commented on issue #13819:
URL: https://github.com/apache/datafusion/issues/13819#issuecomment-2552554818

   ```
   D select [array_value(1,2,3)];
   ┌───────────────────────────────────────┐
   │ main.list_value(array_value(1, 2, 3)) │
   │             integer[3][]              │
   ├───────────────────────────────────────┤
   │ [[1, 2, 3]]                           │
   └───────────────────────────────────────┘
   D select [array_value(1,2,3)][1];
   ┌──────────────────────────────────────────┐
   │ main.list_value(array_value(1, 2, 3))[1] │
   │                integer[3]                │
   ├──────────────────────────────────────────┤
   │ [1, 2, 3]                                │
   └──────────────────────────────────────────┘
   D select array_append(array_value(1,2,3), 4);
   ┌───────────────────────────────────────┐
   │ array_append(array_value(1, 2, 3), 4) │
   │                int32[]                │
   ├───────────────────────────────────────┤
   │ [1, 2, 3, 4]                          │
   └───────────────────────────────────────┘
   ```
   
   Now, I think as long as the fixed size list is not mutated, we can keep it 
as fixed size list, 
   otherwise we DON'T cast it back to fixed size list. I guess this reduce the 
additional casting cost and is more consistent with DuckDB
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to