Skip to content

Conversation

@AbhishekASLK
Copy link
Contributor

@AbhishekASLK AbhishekASLK commented Jan 16, 2026

This PR annotate CURRENT_CATALOG() function for Hive, Spark and DBX

Documentation:

Hive:

SELECT typeof(CURRENT_CATALOG()), version()
+---------+--------------------------------------------------+--+
|   _c0   |                       _c1                        |
+---------+--------------------------------------------------+--+
| string  | 4.1.0 r75e40b7537c91a70ccaa31c397d21823c7528eeb  |
+---------+--------------------------------------------------+--+

Spark2:

SELECT CURRENT_CATALOG()
Spark Version: 2.4.8
Undefined function: 'CURRENT_CATALOG'. This function is neither a registered temporary function nor a permanent function registered in the database 'default'.; line 1 pos 7

Spark:

SELECT typeof(CURRENT_CATALOG()), version()
+-------------------------+--------------------+
|typeof(current_catalog())|           version()|
+-------------------------+--------------------+
|                   string|3.5.5 7c29c664cdc...|
+-------------------------+--------------------+

DBX:

SELECT typeof(CURRENT_CATALOG()), version()
typeof(current_catalog())	version()
string	4.0.0 0000000000000000000000000000000000000000

@georgesittas Hive, Spark3, DBX support this but not spark2 (support Since: 3.1.0), how we can handle this? we have to support individually or this is fine?

@georgesittas georgesittas merged commit 7b6cf11 into tobymao:main Jan 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants