The RelBuilder#field method that creates a RexNode based on alias + fieldName throws an IllegalArgumentException if the corresponding field is not found:
public RexNode field(int inputCount, String alias, String fieldName) { ... throw new IllegalArgumentException("no aliased field found; fields are: " + fields); }
However, the exception message does not include the requested alias & fieldName, which is relevant information, definitively useful for troubleshooting.
- links to