Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/src/main/java/org/apache/calcite/avatica/SqlType.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,11 @@ public enum SqlType {
public static SqlType valueOf(int type) {
final SqlType sqlType = BY_ID.get(type);
if (sqlType == null) {
throw new IllegalArgumentException("Unknown SQL type " + type);
// In most cases the ANY type will allow non-standard types to be displayable in the query requests.
// However, I think we should add the ability to specify a non-standard type factory
// that can be referenced here to see if the type is supported.
// For now, we will just return ANY to unblock users of databases that support non-standard types.
return ANY;
}
return sqlType;
}
Expand Down
Loading