You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by je...@apache.org on 2019/06/27 00:42:17 UTC

[incubator-pinot] branch errorMessage updated (b132c28 -> 1898ac1)

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

jenniferdai pushed a change to branch errorMessage
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


 discard b132c28  Adding error if table does not exist to avoid null pointer
     new 1898ac1  Adding error if table does not exist to avoid null pointer

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b132c28)
            \
             N -- N -- N   refs/heads/errorMessage (1898ac1)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/pinot/common/config/TableConfig.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[incubator-pinot] 01/01: Adding error if table does not exist to avoid null pointer

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jenniferdai pushed a commit to branch errorMessage
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 1898ac158643c5e8aace7a7c9ed12f411bc47f45
Author: Jennifer Dai <jd...@linkedin.com>
AuthorDate: Wed Jun 26 17:40:35 2019 -0700

    Adding error if table does not exist to avoid null pointer
---
 .../src/main/java/org/apache/pinot/common/config/TableConfig.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pinot-common/src/main/java/org/apache/pinot/common/config/TableConfig.java b/pinot-common/src/main/java/org/apache/pinot/common/config/TableConfig.java
index 2f4ee1c..2a9fe50 100644
--- a/pinot-common/src/main/java/org/apache/pinot/common/config/TableConfig.java
+++ b/pinot-common/src/main/java/org/apache/pinot/common/config/TableConfig.java
@@ -112,6 +112,8 @@ public class TableConfig {
 
   public static TableConfig fromJsonConfig(JsonNode jsonConfig)
       throws IOException {
+    Preconditions
+        .checkState(jsonConfig != null, "Table does not exist");
     // Mandatory fields
     JsonNode jsonTableType = jsonConfig.get(TABLE_TYPE_KEY);
     Preconditions


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org