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
SSC-Insane
SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)

Group: General Forum Members
Points: 22200 Visits: 5945
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 (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)

Group: General Forum Members
Points: 361745 Visits: 34454
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 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd Edition
Product Evangelist for Red Gate Software
xsevensinzx
xsevensinzx
SSC-Insane
SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)

Group: General Forum Members
Points: 22200 Visits: 5945
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 (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)

Group: General Forum Members
Points: 361745 Visits: 34454
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 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd Edition
Product Evangelist for Red Gate Software
xsevensinzx
xsevensinzx
SSC-Insane
SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)

Group: General Forum Members
Points: 22200 Visits: 5945
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
SSC-Insane
SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)SSC-Insane (22K reputation)

Group: General Forum Members
Points: 22200 Visits: 5945
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
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1119 Visits: 746
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