Possible limitations about an user defined scalar function in a Synapse dedicated SQL pool

pmscorca 1,052 Reputation points
2023-07-26T13:42:44.71+00:00

Hi,

for a Synapse Analytics solution I need to implement some controls about data to read from a staging area in order to write them to a dwh.

So, I think to create the necessary user defined scalar function in T-SQL language, but I'd like to know which are the possible limitations respect to a SQL Server on-premise data platform.

Reading this article, it seems that the scalar functions are fully supported: https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/overview-features

Any helps to me, please? Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
0 comments No comments
{count} votes

Accepted answer
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2023-07-26T23:35:21.01+00:00

    @pmscorca Thanks for using Microsoft Q&A forum and posting your query.

    Scalar User-defined functions are fully supported in Synapse Analytics Dedicated SQL, and you can create them using T-SQL language. These functions can be used to implement controls about data to read from a staging area in order to write them to a data warehouse.

    Regarding the possible limitations of user-defined scalar functions in Synapse Analytics, there are no significant differences compared to SQL Server on-premises data platforms.

    Looks like the limitations or restrictions called out in this document applies to On-Prem SQL, Azure SQL & Azure Synapse Dedicated SQL: SQL UDF - Limitations and restrictions

    User's image

    Here is the latest information specific to Azure Synapse analytics documentation: CREATE FUNCTION (Azure Synapse Analytics and Microsoft Fabric)

    User's image

    Hope this info helps.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.