SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Azure Data Warehouse String Splitters?


Azure Data Warehouse String Splitters?

Author
Message
xsevensinzx
xsevensinzx
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10840 Visits: 4148
Do these exist? Looks like Azure Data Warehouse has some pretty big limitations with not being able to use SELECTS. Grant, hoping you see this buddy and have some good suggestions! BigGrin
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)

Group: General Forum Members
Points: 221084 Visits: 33551
Ha! I don't. Have you tried using a tally table and Jeff's queries? I haven't tested that, but it'd be my go-to.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
xsevensinzx
xsevensinzx
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10840 Visits: 4148
Grant Fritchey - Wednesday, May 17, 2017 11:07 AM
Ha! I don't. Have you tried using a tally table and Jeff's queries? I haven't tested that, but it'd be my go-to.

Yeah, it's my next to try outside of splitting outside of Azure.

Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)SSC Guru (221K reputation)

Group: General Forum Members
Points: 221084 Visits: 33551
Following Microsoft's ELT, as opposed to ETL, approach to Data Warehouse, you sure should be able to make that work. I'd offer to test it for you, but I'm a little slammed at the moment. I might be able to get to it next week.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
xsevensinzx
xsevensinzx
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10840 Visits: 4148
Shouldn't be a problem. I use a lot of Python in cases like these. As the splitting needs to happen on a smaller dimension file, it shouldn't be an issue outside of Azure to address it. The issue, is I really don't want to split the file outside because the delimiters are dynamic depending on business unit and can be multiple positions that may or may not be to split. This is why I liked using functions because it allowed me to apply functions to columns to split on a SELECT statement as needed. This was one of the very cool options that Azure seems to lack at the moment. Hopefully in time.
xsevensinzx
xsevensinzx
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10840 Visits: 4148
Found a working example for Azure Data Warehouse (credited to wBob). Going to clean it up more before posting it up.
andrew_dale
andrew_dale
SSC Eights!
SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)SSC Eights! (804 reputation)

Group: General Forum Members
Points: 804 Visits: 742
xsevensinzx - Wednesday, August 30, 2017 7:31 PM
Found a working example for Azure Data Warehouse (credited to wBob). Going to clean it up more before posting it up.


did you ever clean this up?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search