Background:
I am migrating a SQL Server datawarehouse to Azure SQL Data Warehouse. The database is the source for an SSAS OLAP cube.
Some of the measure groups have been partitioned and rely on a table-valued function to query the relevant data for the partition.
Issue:
I'm not able to create these functions in Azure-DWH.
Sample function: create function udm.MyFunction () returns table as return ( select getdate(), getutcdate() )
Error Message: Msg 104051, Level 16, State 1, Line 46 Unsupported data type error. Statement references a data type that is unsupported in Parallel Data Warehouse, or there is an expression that yields an unsupported data type. Modify the statement and re-execute it.
The MSDN link: https://msdn.microsoft.com/en-US/library/mt203952.aspx lists the "return_data_type" and mentions "Is the return value of a scalar user-defined function. For Transact-SQL functions, all scalar data types supported in SQL Data Warehouse are allowed. The timestamp (rowversion) data type is not a supported type."
My assumption is the TABLE return type is the error as I've been able to create functions returning a single value.
I'm unsure if the table-values functions are supported or not, and if so what I need to do to get them working.