trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
9.92k stars 2.86k forks source link

Add support for ASOF join #21759

Open jirislav opened 2 months ago

jirislav commented 2 months ago

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:

findinpath commented 2 months ago

cc @martint

PranavRudra commented 3 weeks ago

Hey Trino team, any update on this?