Skip to content

Commit

Permalink
Port Calcite-5965
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Sep 11, 2024
1 parent 63e596f commit 613c448
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
* AND gender = 'F')</pre>
*
* </blockquote>
*
* <p>FLINK modifications are at lines
*
* <ol>
* <li>Should be removed after fixing CALCITE-6342 (Calcite 1.36.0): Lines 84-89
* </ol>
*/
public class RexFieldAccess extends RexNode {
// ~ Instance fields --------------------------------------------------------
Expand All @@ -74,7 +80,11 @@ private static void checkValid(RexNode expr, RelDataTypeField field) {
fieldIdx >= 0
&& fieldIdx < exprType.getFieldList().size()
&& exprType.getFieldList().get(fieldIdx).equals(field),
"Field " + field + " does not exist for expression " + expr);
// FLINK MODIFICATION BEGIN
"Field %s does not exist for expression %s",
field,
expr);
// FLINK MODIFICATION END
}

public RelDataTypeField getField() {
Expand Down

0 comments on commit 613c448

Please sign in to comment.