You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "djouallah (via GitHub)" <gi...@apache.org> on 2025/07/15 12:24:18 UTC

Re: [I] support FFI query result streams that do not pre-collect [datafusion-python]

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-unsubscribe@datafusion.apache.org

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


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