You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by gj...@apache.org on 2019/11/12 17:49:48 UTC

[phoenix] branch master updated: PHOENIX-5561: Replace Java8 code

This is an automated email from the ASF dual-hosted git repository.

gjacoby pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new f8cfa6b  PHOENIX-5561: Replace Java8 code
f8cfa6b is described below

commit f8cfa6b8b9f63ab080cdafa486bb4aabf043b1f8
Author: Gokcen Iskender <gi...@salesforce.com>
AuthorDate: Mon Nov 11 16:15:12 2019 -0800

    PHOENIX-5561: Replace Java8 code
---
 .../java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index 58ff88b..cc6577e 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -930,7 +930,8 @@ public class ConnectionQueryServicesImpl extends DelegateQueryServices implement
 
             boolean isViewBaseTransactional = false;
             if (!isTransactional && isViewIndex) {
-                if (Boolean.TRUE.equals(tableProps.getOrDefault(TRANSACTIONAL, Boolean.FALSE))) {
+                if (tableProps.containsKey(TRANSACTIONAL) &&
+                        Boolean.TRUE.equals(tableProps.get(TRANSACTIONAL))) {
                     isViewBaseTransactional = true;
                 }
             }