use of org.apache.spark.sql.types.StringType$ in project bunsen by cerner.
the class SchemaConverterTest method codingToStruct.
@Test
public void codingToStruct() {
DataType codingType = getField(conditionSchema, true, "severity", "coding");
Assert.assertTrue(getField(codingType, true, "system") instanceof StringType);
Assert.assertTrue(getField(codingType, true, "version") instanceof StringType);
Assert.assertTrue(getField(codingType, true, "code") instanceof StringType);
Assert.assertTrue(getField(codingType, true, "display") instanceof StringType);
Assert.assertTrue(getField(codingType, true, "userSelected") instanceof BooleanType);
}
use of org.apache.spark.sql.types.StringType$ in project bunsen by cerner.
the class SchemaConverterTest method codeableConceptToStruct.
@Test
public void codeableConceptToStruct() {
DataType codeableType = getField(conditionSchema, true, "severity");
Assert.assertTrue(codeableType instanceof StructType);
Assert.assertTrue(getField(codeableType, true, "coding") instanceof ArrayType);
Assert.assertTrue(getField(codeableType, true, "text") instanceof StringType);
}
Aggregations