Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNAP 3104] Showing external hive metastore tables as part of HIVETABLES VTI #1472

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

vatsalmevada
Copy link
Contributor

@vatsalmevada vatsalmevada commented Nov 20, 2019

Changes proposed in this pull request

Showing external hive metastore tables as part of HIVETABLES VTI

Approach

Keeping a flag hiveSessionInitialized as part of the profile of the lead node
with the default value set to false.
When the hive session is initialized on the lead node, we set this flag to
true and distribute the updated profile.

When SYS.HIVETABLES VIT is executed on a server node, the server node checks
whether hiveSessionInitialized is set to true in lead's profile. If it is
set to true it executes ExternalHiveTablesCollectorFunction on the lead node
to fetch the metadata of hive tables available on external hive metastore.

ExternalHiveTablesCollectorFunction is only executed when
hiveSessionInitialized is set to true to avoid unnecessary remote function
call.


Note that server need to fetch these details from the leader node as the hive
session is available only one leader.

Patch testing

precheckin -Pstore
Manually tested. Will add automated coverage.

Other PRs

TIBCOSoftware/snappy-store#530

Vatsal Mevada added 4 commits November 18, 2019 13:21
as part of SYS.HIVETABLES VTI.

Pending: Changes are tested by picking first available snappysession
from ConnectionIdToSnappySession map instead of picking the correct
SnappySession for given connection id.
`ExternalHiveTablesCollectorFunction`.
- added copyright headers
…tion

which will be used to retrieve hive tables available in current schema.
# Conflicts:
#	cluster/src/main/scala/io/snappydata/gemxd/ClusterCallbacksImpl.scala
#	core/src/main/scala/io/snappydata/util/ServiceUtils.scala
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.

None yet

1 participant