current_metastorefunction

一個pplies to:check marked yesDatabricks SQLcheck marked yesDatabricks Runtime 11.1 and above

Returns the current metastore id.

Syntax

current_metastore()

一個rguments

This function takes no arguments.

Returns

一個STRING.

The metastore id is of the form:::

Examples

>SELECTcurrent_metastore();azure:westus:f64dcb39-5046-4d4c-9588-c6ac84f9b38a