Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ARRAY_TO_STRING() #3294

Closed
prrao87 opened this issue Apr 16, 2024 · 0 comments · Fixed by #3320
Closed

Add support for ARRAY_TO_STRING() #3294

prrao87 opened this issue Apr 16, 2024 · 0 comments · Fixed by #3320
Assignees
Labels
frontend Frontend, i.e., binder, parser, query planning-related issues

Comments

@prrao87
Copy link
Member

prrao87 commented Apr 16, 2024

Migrating this request from @bigluck: in many cases, it is useful to join a list of strings into a string.

Description

In my case, I have an Artifact - [ShouldHaveColumn] -> artifact_col:ArtifactColumn - [IsInputColumnOf] -> Fn
// (ShouldHaveColumn) because the user has defined the column in its code, but there is no guarantee that columns exist for real.

While preparing my graph, I would like to store the list of all the column names in a field of type string.

The only way I found is by doing: CAST(scan_columns, 'STRING')
However, the output string is not in the format I would like [col1, col2, col3]; in my case, I prefer col1, col2, col3.

It would be super helpful to have a function that allows me to specify the list and the separator, as this is a common problem.

Example:

@prrao87 prrao87 added the frontend Frontend, i.e., binder, parser, query planning-related issues label Apr 16, 2024
@acquamarin acquamarin self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend, i.e., binder, parser, query planning-related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants