HackerTrans
トップ新着トレンドコメント過去質問紹介求人

alamb

no profile record

投稿

Embedding a Tantivy Index in Parquet

github.com
1 ポイント·投稿者 alamb·10 か月前·1 コメント

Apache Arrow DataFusion Comet

arrow.apache.org
6 ポイント·投稿者 alamb·2 年前·1 コメント

Pg_analytics: Transforming Postgres into a Fast Analytical Database

docs.paradedb.com
10 ポイント·投稿者 alamb·2 年前·3 コメント

DataWeb: Virtual Data Unsiloing

github.com
1 ポイント·投稿者 alamb·2 年前·0 コメント

コメント

alamb
·10 か月前·議論
This demo extends a Parquet file by embedding a Tantivy full-text search index inside it. A custom DataFusion TableProvider implementation uses the embedded full-text index to optimize wildcard LIKE predicates.
alamb
·12 か月前·議論
> Note that the readers of Parquet need to be aware of any metadata to exploit it. But if not, nothing changes

The one downside of this approach, which is likely obvious, but I haven't seen mentioned is that the resulting parquet files are larger than they would be otherwise, and the increased size only benefits engines that know how to interpret the new index

(I am an author)
alamb
·12 か月前·議論
> That is, start with Wild West and define specs as needed

Yes this is my personal hope as well -- if there are new index types that are widespread, they can be incorporated formally into the spec

However, changing the spec is a non trivial process and requires significant consensus and engineering

Thus the methods used in the blog can be used to use indexes prior to any spec change and potentially as a way to prototype / prove out new potential indexes

(note I am an author)
alamb
·12 か月前·議論
We are actively working on supporting extension types. The mechanism is likely to be using the Arrow extension type mechanism (a logical annotation on top of existing Arrow types https://arrow.apache.org/docs/format/Columnar.html#format-me...)

I expect this to be used to support Variant https://github.com/apache/datafusion/issues/16116 and geometry types

(note I am an author)
alamb
·昨年·議論
See also related blog: https://datafusion.apache.org/blog/2025/04/10/fastest-tpch-g...
alamb
·昨年·議論
Specifically, DataFusion is faster when querying parquet directly.

Most of the leaderboard of ClickBench is for database specific file formats (that you first have to load the data into)
alamb
·昨年·議論
I think you would pick DataFusion over DuckDB if you want to customize it substantially. Not just with user defined functions (which are quite easy to write in DataFusion and are very fast), but things like * custom file formats (e.g. Spiral or Lance) * custom query languages / sql dialects * custom catalogs (e.g. other than a local file or prebuilt duckdb connectors) * custom indexes (read only parts of parquet files based on extra information you store) * etc.

If you are looking for the nicest "run SQL on local files" experience, DuckDB is pretty hard to beat

Disclaimer: I am the PMC chair of DataFusion

There are some other interesting FAQs here too: https://datafusion.apache.org/user-guide/faq.html
alamb
·2 年前·議論
BTW here is a fun exercise that takes this idea to the extreme. Who can build a custom file format that gets the best ClickHouse performance (on DataFusion):

https://github.com/apache/datafusion/issues/13448

Disclaimer I am on the PMC of Apache DataFusion, so am totally a fan boy.
alamb
·2 年前·議論
In general, if you can partition your datasets on your predicate column, sorting is likely the best option

For example when you have a predicate like, `where id = 'fdhah-4311-ddsdd-222aa'` sorting on the `id` column will help

However, if you have predicates on multiple different sets of columns, such as another query on `state = 'MA'`, you can't pick an ideal sort order for all of them.

People often partition (sort) on the low cardinality columns first as that tends to improve compression signficantly
alamb
·2 年前·議論
It would be amazing if the code for working with arrow on GPUs could be made open source -- I think that would drive a significant amount of adoption
alamb
·2 年前·議論
So great to see another project built on DataFusion @!
alamb
·2 年前·議論
The Apache Arrow PMC is pleased to announce the donation of the Comet project, a native Spark SQL Accelerator built on Apache Arrow DataFusion.
alamb
·2 年前·議論
CMU's database courses are online and excellent:

https://15445.courses.cs.cmu.edu/spring2024/

https://15721.courses.cs.cmu.edu/spring2023/
alamb
·2 年前·議論
BTW you can see a version of what an industrial strength query optimizer / execution engine looks like in Rust https://arrow.apache.org/datafusion/

(can also use it in your own projects)

It is quite similar to what is described in this post