Skip to content

[DISCUSSION] Make it easier and faster to query remote files (S3, iceberg, etc)  #13456

Open

Description

@alamb

Is your feature request related to a problem or challenge?

I personally think making it easy to use DataFusion with the "open data lake" stack is very important over the next few months.

@julienledem wrote up a very nice piece describing The advent of the Open Data Lake

The high level idea is to make it really easy for people to build systems that query (quickly!) from parquet files stored on remote object store, including Apache Iceberg, Delta Lake, Hudi, etc.

You can already use DataFusion (and datafusion-cli) to query such data, but it takes non trivial effort to configure and tune for good performance. My idea is to make it easier to do so / make DataFusion better out of the box.

With that as a building block, people could/would build applications and systems targeting specific usecases

I don't yet fully understand where we currently stand on this goal, but I wanted to start hte discussio

Describe the solution you'd like

In my mind, the specific work this entails stuff like

Describe alternatives you've considered

One specific item, brought up by @MrPowers would be to try DataFusion with the "10B row challenge" described in https://dataengineeringcentral.substack.com/p/10-billion-row-challenge-duckdb-vs .

I suspect it would be non ideal at first, but trying it to figure out what the challenges are would help us focus our efforts

Additional context

No response

Activity

  1. comphead commented on Nov 18, 2024

    @comphead
    Contributor

    What about remote HDFS files support? We have a contribution project https://github.com/datafusion-contrib/datafusion-objectstore-hdfs which supposed to query HDFS, but not sure how far we are with that

  2. alamb commented on Nov 19, 2024

    @alamb
    ContributorAuthor

    Yes I think HDFS would be another good target

    Basically I want to make sure that it is as easy as possible to use DataFusion to query data that lives on remote systems (aka where the data is not on some local NVME but must be accessed over the network)

  3. jonathanc-n commented on Nov 21, 2024

    @jonathanc-n
    Contributor

    I forgot to mention this here, apache/iceberg-rust#700 (write support) is a really nice issue opened up in iceberg-rust. Getting the rust implementation of iceberg up and going would probably help out datafusion a bit on the data lake side of things.

  4. alamb commented on Nov 21, 2024

    @alamb
    ContributorAuthor

    I forgot to mention this here, apache/iceberg-rust#700 (write support) is a really nice issue opened up in iceberg-rust. Getting the rust implementation of iceberg up and going would probably help out datafusion a bit on the data lake side of things.

    Yes, 100% -- one of my goals is to make it easy for this to "just work" with DataFusion. I think we are a bit away from it at the moment

  5. matthewmturner commented on Nov 22, 2024

    @matthewmturner
    Contributor

    @alamb from a datafusion perspective which parts do you think are missing? I ask about just the datafusion perspective because i am assuming the owners of the relevant table formats will be implementing their spec / protocol.

  6. matthewmturner commented on Nov 22, 2024

    @matthewmturner
    Contributor

    The way i was thinking about it the thing that makes it interesting / difficult is getting the semantics of each of the formats as part of datafusion which i would presume needs to be done as either SQL extensions and/or custom execution plans. Without knowing much about the specifics i thought that was already doable - but maybe im missing something.

  7. alamb commented on Nov 22, 2024

    @alamb
    ContributorAuthor

    @alamb from a datafusion perspective which parts do you think are missing? I ask about just the datafusion perspective because i am assuming the owners of the relevant table formats will be implementing their spec / protocol.

    I am thinking mostly the list

  8. matthewmturner commented on Nov 23, 2024

    @matthewmturner
    Contributor

    Thanks @alamb

    I plan to work on the second item - probably in December. I was really hoping to get a dft release out shortly where all the custom table providers (Delta / Iceberg / Hudi - and potentially Lance) were on DF v43 - but that might be wishful thinking.

    Depending how the next week goes i will make a judgement call on whether or not to wait. If it isnt looking promising that everyone will be on v43 then my next priority will be implementing the FFI.

  9. blaginin commented on Dec 3, 2024

    @blaginin
    Member

    I think one problem with the current implementation of external storages is that it's pretty hard to test properly. For example, the issue I solve in #13576 happened because right now, we only test that the external storage parameters are parsed, but we don’t even check if they’re parsed correctly.

    Maybe we should start mocking aws/iceberg/... and move more towards integration testing? That way, we’d be more confident that our external storage support actually works 😅

  10. comphead commented on Dec 3, 2024

    @comphead
    Contributor

    @alamb I will try to cover how DataFusion works with remote HDFS files if that fits.
    I'm planning to experiment with datafusion-objectstore-hdfs and make dev/tests/examples/docs so the user can easily query HDFS files from Datafusion CLI

  11. alamb commented on Dec 4, 2024

    @alamb
    ContributorAuthor

    Maybe we should start mocking aws/iceberg/... and move more towards integration testing? That way, we’d be more confident that our external storage support actually works 😅

    Yes 100% -- maybe we can take a friendly look at the emultors used in object_store tests

    https://github.com/apache/arrow-rs/blob/9047d99f6bf87582532ee6ed0acb3f2d5f889f11/.github/workflows/object_store.yml#L91-L184

  12. changed the title [-][DISCUSSION] Make it easy and fast to query files on remote files (S3, iceberg, etc) [/-] [+][DISCUSSION] Make it easier and faster to query files on remote files (S3, iceberg, etc) [/+] on Dec 21, 2024
  13. changed the title [-][DISCUSSION] Make it easier and faster to query files on remote files (S3, iceberg, etc) [/-] [+][DISCUSSION] Make it easier and faster to query remote files (S3, iceberg, etc) [/+] on Dec 21, 2024
  14. timvw commented on Jan 9, 2025

    @timvw
    Contributor

    In qv I use minio to test whether s3 integration works...

    https://github.com/timvw/qv/blob/main/tests/files_on_s3.rs#L9
    https://github.com/timvw/qv/blob/main/ci/minio_start.sh

    Integration with delta-rs was always pretty easy, iceberg-rust|rs has been more difficult (mostly because you also need to access a catalog to get the correct/current relevant metadata to get started...)

  15. alamb commented on Jun 6, 2025

    @alamb
    ContributorAuthor
  16. comphead commented on Jun 6, 2025

    @comphead
    Contributor

    Adding more known issues and will create tickets and probably address them later

    Create test data

    ls -la /tmp/t1
    
    -rw-r--r--@  1 xxx  wheel   12 Jun  6 08:35 .part-00000-e248d995-5eac-404e-a2ed-0eb16e27c005-c000.snappy.parquet.crc
    -rw-r--r--@  1 xxx  wheel  455 Jun  6 08:35 part-00000-e248d995-5eac-404e-a2ed-0eb16e27c005-c000.snappy.parquet
    
    • should realize this is a folder and rewrite as /tmp/t1/*.parquet
    DataFusion CLI v47.0.0
    > CREATE EXTERNAL TABLE t1 STORED AS PARQUET location '/tmp/t1';
    Parquet error: Parquet error: Invalid Parquet file. Corrupt footer
    
  17. pepijnve commented on Sep 17, 2026

    @pepijnve
    Contributor

    #25111 is an attempt to provide a hook in the CLI and Session to make it easier to register remote tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions