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