Column renaming for the duration of a function call
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue describes a function-call feature using PRQL examples, but names no implementation files or tests. Start by reading the language’s function and relation handling to locate how function arguments are processed. Done means a function can use a caller-selected column for sorting without requiring the caller to add and remove a helper column explicitly.
索引モデルが issue の本文から書いたものです。
説明
@snth has recently raised an issue that I remember we have already talked about, but cannot find now. I do think is a pain point and something we should do do better.
While on the topic of functions, one thing that I think is really needed is a way to alias columns in a relation passed to functions. I've thought a bit about this and I don't really know of an elegant way to do that.
Take for example a simple take_smallest function I use in my presentations:
let take_smallest = func n tbl -> ( from tbl sort bytes take n ) from tracks group {album_id} ( take_smallest 3 )This works but bytes is hardcoded and you would really want that to be a parameter of take_smallest.
One workaround would be the following
let take_smallest = func n tbl -> ( # Requires a _sort_by column to be set from tbl sort _sort_by take n ) from tracks group {album_id} ( derive _sort_by=milliseconds take_smallest 3 select !{_sort_by} )That works but you kinda want that
derive _sort_by= ... select !{_sort_by}to happen implicitly inside the function definition.
- 主要言語
- Rust
- スター
- 10.9k
- フォーク
- 261
- 平均マージ
- 3日 21時間
- マージ済み PR(30日)
- 84
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PRQL/prql のほかの issue
-
Underscore does not work as expected対応中かも @prql-bot が 3 日前に担当しました。 オープン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 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 12/100
メンテナーはふだん 3 日以内に返信
-
review-runs-tracking
難易度 3/5 半日 初心者へのやさしさ 5/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
bug priority: low ui
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
storytold/gridcraft#3446 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
seabeectl verify exits 0 when verification fails対応中かも @theyottaboy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NationalSecurityAgency/seabee#73 ·
メンテナーはふだん 4 日以内に返信
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
neilsh/stunt-reel#220 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信