InvalidOperation GetMetadata Error While Scanning Snowflake in Microsoft Purview

Max Harper 0 Reputation points
2024-12-02T18:52:28.9133333+00:00

When scanning a Snowflake database for Microsoft Purview using Scan Level Auto-Detect, an invalidOperation error occurs for tables. The error is specifically related to the GetMetaData operation. The following query returns no results when attempting to scan my TEST_TABLE in the TEST schema:

SELECT T.TABLE_CATALOG, T.TABLE_SCHEMA, T.TABLE_NAME, T.TABLE_TYPE, T.COMMENT, V.IS_SECURE, T.LAST_ALTERED 
FROM INFORMATION_SCHEMA.TABLES T 
LEFT OUTER JOIN INFORMATION_SCHEMA.VIEWS V ON (T.TABLE_CATALOG=V.TABLE_CATALOG AND T.TABLE_SCHEMA=V.TABLE_SCHEMA AND T.TABLE_NAME=V.TABLE_NAME) 
WHERE T.TABLE_TYPE IN ('BASE TABLE') AND T.TABLE_NAME ='null' AND T.TABLE_SCHEMA ='TEST'.

The issue appears to be that the automated query incorrectly uses T.TABLE_NAME ='null', which results in an empty query. Is the automated query supposed to have the 'null' as TEST_TABLE, if not, how do I fix this problem?

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,465 questions
{count} votes

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.