Playground does not display float/decimal results correctly
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue reports incorrect decimal display in the public Playground while generated SQL is correct; no source files or tests are named. Start by locating the Playground’s result-rendering code and related tests, then reproduce the supplied PRQL input. Done means the displayed values retain their decimal points and the regression is covered by a test.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Using the public Playground (version 0.12.2), the Playground displays incorrect results for the round function. It seems to be missing the decimal points in the output.
The generated SQL is correct, and pasting that SQL into SQLite shows the expected results.
PRQL input
from [ { a=1 } ]
select {
math.round 1 1.23,
math.round 1 4.56
}
SQL output
WITH table_0 AS (
SELECT
1 AS a
)
SELECT
ROUND(1.23, 1),
ROUND(4.56, 1)
FROM
table_0
-- Generated by PRQL compiler version:0.12.2 (https://prql-lang.org)
Expected SQL output
==== EXPECTED ====
ROUND(1.23, 1) ROUND(4.56, 1)
1.2 4.6
==== ACTUAL ====
round(1.23, 1) round(4.56, 1)
12 46 <-- Note the lack of decimal points
MVCE confirmation
- Minimal example
- New issue
Anything else?
No response
- 主要言語
- Rust
- スター
- 10.9k
- フォーク
- 261
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 85
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PRQL/prql のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
prqlc Debug Report HTML Does Not Escape Source File Name, Enabling Stored XSS via PRQLC_DEBUG_LOGオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 3 日以内に返信
-
friendliness integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
PRQL/prql#1636 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
-
tend-rate-limit
難易度 5/5 1週間以上 初心者へのやさしさ 4/100
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 12/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libnativeapi/nativeapi#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
longbridge/nsh#804 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信