[ https://issues.apache.org/jira/browse/HIVE-15976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508359#comment-16508359 ]
Alan Gates commented on HIVE-15976: ----------------------------------- current_catalog() should not call getCurrentDatabase(). In HIVE-19769 (currently patch available) I am adding a getCurrentCatalog() call to SessionState. This will be the right method to call. If you don't want to wait until that patch goes in you can hardwire the UDF to return Warehouse.DEFAULT_CATALOG_NAME for now and I'll fix it once I get HIVE-19769 in. If you do this please put in a comment that starts with // TODO CAT so I find it and fix it. > Support CURRENT_CATALOG and CURRENT_SCHEMA > ------------------------------------------ > > Key: HIVE-15976 > URL: https://issues.apache.org/jira/browse/HIVE-15976 > Project: Hive > Issue Type: Sub-task > Components: SQL > Reporter: Carter Shanklin > Assignee: Laszlo Bodor > Priority: Major > Attachments: HIVE-15976.01.patch, HIVE-15976.02.patch > > > Support these keywords for querying the current catalog and schema. SQL > reference: section 6.4 -- This message was sent by Atlassian JIRA (v7.6.3#76005)