use of com.hazelcast.sql.SqlColumnMetadata in project hazelcast by hazelcast.
the class SqlNullableColumnTest method testSelectWithNonNullSupport.
@Test
public void testSelectWithNonNullSupport() {
createMapping("map", String.class, int.class);
instance().getMap("map").put("key", 1);
SqlResult result = instance().getSql().execute("SELECT __key, 1 FROM map");
List<SqlColumnMetadata> columns = result.getRowMetadata().getColumns();
assertEquals(columns.size(), 2);
assertTrue(columns.get(0).isNullable());
assertFalse(columns.get(1).isNullable());
}
Aggregations