// implement RelDataType public RelDataTypeField getField(String fieldName, boolean caseSensitive) { for (RelDataTypeField field : fieldList) { if (Util.match(caseSensitive, field.getName(), fieldName)) { return field; } } // Extra field if (fieldList.size() > 0) { final RelDataTypeField lastField = Iterables.getLast(fieldList); if (lastField.getName().equals("_extra")) { return new RelDataTypeFieldImpl(fieldName, -1, lastField.getType()); } } return null; }