Using a Postgres dataflow to split a comma-separated string into separate rows
Trying to split a comma-separated field into rows. Input looks like this:
JiraID | Zendesk IDs
1 | 5,6,7
Desired Output:
Jira ID | Zendesk ID
1 5
1 6
1 7
tried using unnest(string_to_array("Zendesk IDs", ',')::integer[])
but am getting errors that unnest(integer[]) not found.
Any other way?
Thanks!
Comments
-
Is anyone able to help out with this request?
0 -
I am trying to acomplish the same thing and am using https://knowledge.domo.com/Prepare/DataFlow_Tips_and_Tricks/Splitting_a_String_into_Multiple_Rows
Issue is in the instructions they do not result in a final table as indicated after the last step and it does not seperate by comma.
0 -
I need this solution as well.
I also concur that the linked suggestion does not result in any "final" table that I can locate.
Can anyone support?
0 -
As Quirolla mentioned, this article should help: https://knowledge.domo.com/Prepare/DataFlow_Tips_and_Tricks/Splitting_a_String_into_Multiple_Rows
If you'd like to create new columns instead of rows you could use the SUBSTRING_INDEX() function, here is a good article on how to use it: https://www.w3resource.com/mysql/string-functions/mysql-substring_index-function.php
Quirolla & DVLuna,
For some reason you cannot see the table 'final' as an option on the left pane, however, if you use the following query (as a transform or an output) you'll be able to see the results:
SELECT *
FROM final
I assume it's because the table 'final' is generated within the Stored Procedure, but I could be wrong there.
Hope that helps!
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive