The default implementation parses {@link #getSchemaString()}; if {@code getSchemaString()} + * returns {@code null}, this method returns {@code null}. + */ + default StructType getSchema() { + String schemaString = getSchemaString(); + return schemaString == null ? null : DataTypeJsonSerDe.deserializeStructType(schemaString); + } + /** * The table schema in string representation. */