comphead commented on issue #9144:
URL: 
https://github.com/apache/arrow-datafusion/issues/9144#issuecomment-2000495468

   Update: reading from table or parquet doesn't cause exponential schema calls 
growth. 
   Queries with literals causes that like 
   ```
   let sql = "select a, a + 1, a+2 b from (select 1 a union all select 2 a 
union all select 3 a union all select 4 a union all select 5 a union all select 
6 a)";
   ```
   
   But this is rare and won't be that critical.
   
   However for reading parquet and tables another problem arises with wild card 
expansion
   
   adding outer `select *` adds 50 new calls to `with_new_metadata`
   
   ```
       let sql = "select * from (select * from (select * from (select * from 
(select * from (select a, a+1, a+2, a+3, a+4, a+5, a+6, a+7, a+8, a+9 from 
t1)))))";
   ```
   makes 359 calls


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

Reply via email to