'std' panics on lowering

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

メンテナーはふだん 3 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust
領域
compilers

調査の方向性

The panic points to prqlc/prqlc/src/semantic/lowering.rs:227. Start by reading the lowering logic around that line and compare how the standalone std input is handled with from a | std, which produces an expected-function error. Done when compiling the standalone input reports an appropriate error instead of panicking.

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

説明

bug
What happened?

trying to compile just std leads to program panic

PRQL input
std
SQL output
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: prqlc/prqlc/src/semantic/lowering.rs:227
Expected SQL output
n/a
MVCE confirmation
  • Minimal example
  • New issue
Anything else?

Interestingly enough, if std is later in a pipeline, it errors out appropriately

Error:
   ╭─[:1:10]
   │
 1 │ from a | std
   │          ─┬─
   │           ╰─── expected a function, but found `std`
───╯
主要言語
Rust
スター
10.9k
フォーク
261
平均マージ
3日 20時間
マージ済み PR(30日)
85

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

PRQL/prql のほかの issue

PRQL/prql の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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