Compound type java.sql.Types.ARRAY in custom wrapper schema causes "Error saving base view: null" in saving base view after "Source refresh". (The first time creating base view is always fine. Without changing anything on the source, after refreshing source, saving the base view the second time raises the error. Only ARRAY type has this issue. All other data types are fine.)
Denodo 7.0, please advise. Very simple sample code to reproduce the error:
public CustomWrapperSchemaParameter[] getSchemaParameters(Map<String, String> inputValues) {
return new CustomWrapperSchemaParameter[] {
new CustomWrapperSchemaParameter("array_of_text", java.sql.Types.ARRAY,
new CustomWrapperSchemaParameter[] {
new CustomWrapperSchemaParameter("name", java.sql.Types.VARCHAR)
}
)};
}
public void run(CustomWrapperConditionHolder condition,
List<CustomWrapperFieldExpression> projectedFields,
CustomWrapperResult result, Map<String, String> inputValues) {
result.addRow(new Object[] {new Object[] {"John", "Mary", "Tom"}});
}