SENTRY-2047: isTableEmptyCore method in SentryStore has references to MAuthzPathsMapping when it should be generic (Arjun Mishra, reviewed by Vadim Spector)
Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/832e8da0 Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/832e8da0 Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/832e8da0 Branch: refs/heads/akolb-cli Commit: 832e8da0f30f8db9131e30fabad5dca9f8631d21 Parents: 9c541ad Author: Vadim Spector <[email protected]> Authored: Fri Nov 17 08:58:27 2017 -0800 Committer: Vadim Spector <[email protected]> Committed: Fri Nov 17 08:58:27 2017 -0800 ---------------------------------------------------------------------- .../apache/sentry/provider/db/service/persistent/SentryStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/832e8da0/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java index 7217dea..4dc2bf6 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java @@ -3248,7 +3248,7 @@ public class SentryStore { // objects up to the "to" record, and will not pass any unnecessary objects that are before // the "from" record. query.setRange(0, 1); - return ((List<MAuthzPathsMapping>) query.execute()).isEmpty(); + return ((List<?>) query.execute()).isEmpty(); } /**
