4paradigm / 4paradigm/OpenMLDB

can't lift child `i` to list for udf functions which requires params as list

オープン
#3,039 コメント 0 件 リアクション 0 件 担当者 1 名 @aceforeverd が担当を希望しています GitHub で見る
bug execute-engine
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
1

説明

some udf function requires list param, e.g `lag`, `first_value`, `join`, while some exprs can't infer to list, e.g `case when` expr.

A yaml case:

```yaml
- id: 22
inputs:
- name: t1
columns: ["id string", "gp int", "ts int64", "val int"]
indexs: ["index1:gp:ts"]
rows:
- ["0", 1, 5, 66]
- ["1", 1, 6, 67]
sql: |
select id,
lag(case when ts < 10 then ts else null end, 1) over w as agg
from t1
WINDOW w AS (PARTITION BY gp ORDER BY ts ROWS_RANGE BETWEEN 60d PRECEDING AND CURRENT ROW MAXSIZE 101)
expect:
success: true
```

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

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

調査の方向性

The issue involves UDF functions like `lag` that require list parameters, but certain expressions like `case when` cannot be inferred to a list. Examine the SQL engine's type inference logic, particularly around window functions and expression evaluation. Look at the test case in YAML to understand the failing scenario. Check the code handling UDF parameter lifting and expression type resolution.

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

評価

技術スタック
sql
領域
databases, machine-learning
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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