Time travel support

オープン
#2,006 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust, sql
領域
compilers

調査の方向性

issue では、リポジトリのファイル、テスト、エントリポイントが特定されていません。まず Databricks、Snowflake、Cockroach、DuckLake の構文を比較し、履歴時刻クエリとバージョンクエリでセマンティクスを共有すべきか、それともダイアレクト固有のままにすべきかを判断してください。完了条件には、サポートする構文と動作について合意したスコープを含める必要があります。

索引モデルが issue の本文から書いたものです。

説明

Several databases and data lakes support time travel which allows historical versions of a table to be queried. Regrettably, syntax and capabilities do not seem to be terribly consistent across the various implementations.

Querying Historical Times

This option lets a database be queried as it existed at a certain point in time. (Question: Is this "last version prior to the given time"? or is it an error if no snapshot exists with that exact time?)

Databricks
SELECT * FROM people10m TIMESTAMP AS OF '2018-10-18T22:15:12.013Z';
Snowflake
SELECT * FROM my_table AT(TIMESTAMP => 'Wed, 26 Jun 2024 09:20:00 -0700'::TIMESTAMP_LTZ);
Cockroach
SELECT * FROM t AS OF SYSTEM TIME '2016-06-15 12:45:00'
DuckLake
SELECT * FROM tbl AT (TIMESTAMP => now() - INTERVAL '1 week');

Querying Specific versions

This options lets a specific "version" of a database to be queried. What exactly this means seems to depend on the database implementation in question.

Databricks
SELECT * FROM people10m VERSION AS OF 123;
Snowflake

Note: unclear if this is the same thing (specific versions) or different

SELECT * FROM my_table BEFORE(STATEMENT => '8e5d0ca9-005e-44e6-b858-a8f5b37c5726');
Cockroach

Unsupported

DuckLake
SELECT * FROM tbl AT (VERSION => 3);
主要言語
Rust
スター
3.5k
フォーク
774
平均マージ
3日 4時間
マージ済み PR(30日)
19

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/datafusion-sqlparser-rs のほかの issue

apache/datafusion-sqlparser-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。