kipukun 4 months ago

The cuDF interop in the roadmap [1] will be huge for my workloads. XGBoost has the fastest inference time on GPUs, so a fast path straight from these Vortex files to GPU memory seems promising.

[1] https://github.com/vortex-data/vortex/issues/2116

  • reactordev 4 months ago

    Can you explain how it’s faster? GPU memory is just a blob with an address. Is it because the loading algorithms for vortex align better with XGBoost or just plain uploading to the GPU?

    • robert3005 4 months ago

      What you can do if you have gpu friendly format is you send compressed data over PCI-E and then decompress on the gpu. Thus your overall throughput will increase since PCI-E bandwidth is the limiting factor of the overall system.

      • reactordev 4 months ago

        That doesn’t explain how vortex is faster. Yes, you should send compressed data to the GPU and let it uncompress. You should maximize your PCI-E throughput to minimize latency in execution, but what does Vortex bring? Other than Parque bad, Vortex good.

    • kipukun 4 months ago

      XGBoost is just faster on the GPU, regardless of the file format. A sibling post also pointed out compression helping out on bandwidth.

andyferris 4 months ago

One thing I found interesting is the logical type system doesn't seem to include sum types or unions, unlike Arrow etc.

I'd generally encourage new type systems to include sum types as a first-class concept.

  • infogulch 4 months ago

    I wonder if a columnar storage format should implement sum types with a struct of arrays where only one array has a nun-null value for each index.

    • ozgrakkurt 4 months ago

      Arrow has two variants of it and this is one of them. Other variant has a seperate offsets array that you use to index into the active “field” array, so it is slower to process in most cases but is more compact

meehai 4 months ago

Can you append new columns to a file stored on disk without reading it all in mempey? Somehoe this is beyond parquet capabilities.

  • robert3005 4 months ago

    The default writer will decompress the values, however, right now you can implement your own write strategy that will avoid doing it. We plan on adding that as an option since it’s quite common.

nahnahno 4 months ago

how does this compare to Arrow IPC / Feather v2?

  • rubenvanwyk 4 months ago

    I've never understood why people say Feather file format isn't meant for "long-term" storage and prefer Parquet for that. Access is much faster from Feather, compression better with Parquet but Feather is really good.

    • sheepscreek 4 months ago

      Honestly I think Arrow makes Feather redundant. To answer your question, Parquet is optimized for storage on disk - can store with compression to take leas space, and might include clever tricks or some form of indices to query data from the file. Feather on the other hand is optimized for loading onto memory. It uses the same representation on disk as it does in memory. Very little in the way of compression (if any). No optimized for disk at all. BUT you can memory map a Feather file and randomly access any part of it in O(1) time (I believe, but do your own due diligence :)

  • ozgrakkurt 4 months ago

    It is wildly more complex

sys13 4 months ago

How does this compare with delta lake and iceberg?

  • oa335 4 months ago

    Vortex is a file format, where as delta lake and iceberg are table formats. it should be compared to Parquet rather than delta lake and iceberg. This guest lecture by a maintainer of Vortex provides a good overview of the file format, motivations for its creation and its key features.

    https://www.youtube.com/watch?v=zyn_T5uragA

    • ks2048 4 months ago

      The website could use a comparison / motivation in comparison to Parquet (beyond just stating it's 100x better).

      • 3eb7988a1663 4 months ago

        Agreed, really need a tl;dr here, because Parquet is boring technology. Going to require quite the sales pitch to move. At minimum, I assume it will be years before I could expect native integration in pandas/polars/etc which would make it low effort enough to consider.

        Parquet is ..fine, I guess. It is good enough. Why invoke churn? Sell me on the vision.

        • frisbm 4 months ago

          DuckDB just added support for vortex in their last release using the Vortex Python package so hopefully other tools wont be too far behind

        • bsder 4 months ago

          > Going to require quite the sales pitch to move.

          Mutability would be one such pitch I would like to see ...

    • sys13 4 months ago

      I think it would still make sense to compare with those table formats, or is the idea that you would only use this if you could not use a table format?

      • bz_bz_bz 4 months ago

        That’s like comparing words with characters.

        Vortex is, roughly, how you save data to files and Iceberg is the database-like manager of those files. You’ll soon be able to run Iceberg using Vortex because they are complementary, not competing, technologies.

  • cpard 4 months ago

    As others said, Vortex is complementary to the table Formats you mentioned.

    There are other formats though that it can be compared to.

    The Lance columnar format is one: https://github.com/lancedb/lancedb

    And Nimble from Meta is another: https://github.com/facebookincubator/nimble

    Parquet is so core to data infra and widespread, that removing it from its throne is a really really hard task.

    The people behind these projects that are willing to try and do this, have my total respect.

xigoi 4 months ago

Can we stop with the cringe emojis at the start of every heading?

  • kh_hk 4 months ago

    I tend to agree, but I don't see this one as any of the worst offenders, unless I am missing something.

    This readme has what, max two or three emojis? Compare that to most LLM generated readmes with a zillion of emojis for every single feature.

  • mrbluecoat 4 months ago

    I guess not surprising from a project that combines Polars & Vortex