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
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive