djouallah commented on issue #1011:
URL: 
https://github.com/apache/datafusion-python/issues/1011#issuecomment-3073396578

   having the same problem, datafusion keep consuming more memory till it 
crashes
   
    ```
    df = ctx.sql("""
                  select
                 * EXCLUDE("I","XX","SETTLEMENTDATE"),
                  CAST(to_timestamp_seconds("SETTLEMENTDATE",'%Y/%m/%d 
%H:%M:%S') AS TIMESTAMP(6)) as SETTLEMENTDATE,
                  cast(EXTRACT(YEAR FROM 
CAST(to_timestamp_seconds("SETTLEMENTDATE",'%Y/%m/%d %H:%M:%S') AS 
TIMESTAMP(6))) as integer) as year
                  from arrow_dataset
                  where "I" ='D' and "UNIT"='DUNIT' and "VERSION" ='3'
                  """)
     write_deltalake(f"{table_root}/T{total_files}/datafusion", 
df,mode="overwrite",partition_by=['year'])
   ```


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