I'm trying to execute simple SELECT statements in dedicated SQL Pool's script in Azure Synapse. One of those were:
SELECT regexMatch('abctest','^[A-Za-z]*$');
This statement should yield return True because it tests whether the string contains only alphabets or not. Instead it produces the following error message: 'regexMatch' is not a recognised built-in function name.'
When I checked the official docs, the built-in function is available and the task of the function was as expected. https://learn.microsoft.com/en-us/azure/data-factory/data-flow-expression-functions
I also found this page, where it is explained to create a pipeline/data flow to execute regex these commands. https://learn.microsoft.com/en-us/azure/data-factory/tutorial-data-flow
I tried it and was successful with it, but I need the regexMatch and regexReplace functions to work in simple SQL scripts and SELECT commands, it seems much simpler and less tedious. Is there any way I can do it? Or is using data flow the only possible way?
Thanks in advance.