You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by ru...@apache.org on 2020/06/04 15:01:45 UTC

[calcite] branch master updated: [CALCITE-4043] Improve IllegalArgumentException message in RelBuilder#field

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0148847  [CALCITE-4043] Improve IllegalArgumentException message in RelBuilder#field
0148847 is described below

commit 014884730cba6f6708f2fadc7c3b9a09d9e0cacb
Author: rubenada <ru...@gmail.com>
AuthorDate: Thu Jun 4 14:42:08 2020 +0200

    [CALCITE-4043] Improve IllegalArgumentException message in RelBuilder#field
---
 core/src/main/java/org/apache/calcite/tools/RelBuilder.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/tools/RelBuilder.java b/core/src/main/java/org/apache/calcite/tools/RelBuilder.java
index 15b025e..9e19e74 100644
--- a/core/src/main/java/org/apache/calcite/tools/RelBuilder.java
+++ b/core/src/main/java/org/apache/calcite/tools/RelBuilder.java
@@ -487,8 +487,8 @@ public class RelBuilder {
                 p.e.right.getName()));
       }
     }
-    throw new IllegalArgumentException("no aliased field found; fields are: "
-        + fields);
+    throw new IllegalArgumentException("{alias=" + alias + ",fieldName=" + fieldName + "} "
+        + "field not found; fields are: " + fields);
   }
 
   /** Returns a reference to a given field of a record-valued expression. */