/** Quickly prepares a simple SQL statement, circumventing the usual
* preparation process. */
private <T> PrepareResult<T> simplePrepare(Context context, String sql) {
final JavaTypeFactory typeFactory = context.getTypeFactory();
final RelDataType x =
typeFactory.builder().add("EXPR$0", SqlTypeName.INTEGER).build();
@SuppressWarnings("unchecked")
final List<T> list = (List) ImmutableList.of(1);
final List<String> origin = null;
final List<List<String>> origins =
Collections.nCopies(x.getFieldCount(), origin);