4paradigm / 4paradigm/OpenMLDB

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

Open
#3,039 0 comments 0 reactions 1 assignee Claimed by @aceforeverd View on GitHub
bug execute-engine
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.