Creating an IfExists function in Kusto to check if a table exists

preview_player
Показать описание
One of the things I find lacking in Kusto is an explicit way to test for the existence of a table: in both Azure SQL and Azure Data Lake, the ifexists function and exists compiler directive, respectively served this purpose.

Kusto doesn’t seem to have an explicit statement supporting this, but you can roll your own using the isfuzzy union argument. The isfuzzy argument basically says that a union should run as long as at least one table exists.

So here’s how to create your own “ifexists” function for kusto.
Рекомендации по теме
Комментарии
Автор

This won't work for tables having zero records. It will show as not present.

ceus