apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.77k stars 3.29k forks source link

[Feature] Add support for ASOF join #39486

Open jirislav opened 3 months ago

jirislav commented 3 months ago

Description & use-case

When analyzing relational time-series data, it is essential to have the ability to join multiple datasets using time dimension by looking up at the value being closest in time.

Without proper query engine support, users are forced to implement inefficient work-around which is both slow & hard to read.

DuckDB has a great explanation here.

Many other popular databases & query engines support it:

Related issues

The most interesting is probably in DataFusion:

Code of Conduct

zclllyybb commented 3 months ago

AFAIK, it's in our plan. maybe someday future it will be supported