apache / apache/pinot

Support array type literal

Open
#9,659 0 comments 2 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
2d 55m
Merged PRs (30d)
182

Description

Currently we only support single value as literal but not array types. This can cause the following issues:
- No way to create an array from literal
- Functions like `split('a,b,c', ',')` will fail because we cannot replace it with a literal in `CompileTimeFunctionsInvoker`. Currently it will return the string representation of an array reference, e.g. `[Ljava.lang.String;@6ba8613b`

Related to #8596, #9204

Contributor guide

Open the contributing guide

Research direction

Start with CompileTimeFunctionsInvoker and trace how literal values are handled for functions such as split('a,b,c', ','). Review related issues #8596 and #9204, then reproduce the array-literal failure and verify that array literals can be created and are no longer converted to Java array reference strings.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.