Skip to content

Commit

Permalink
Merge pull request #1689 from cdapio/CDAP-19532
Browse files Browse the repository at this point in the history
CDAP-19532 | Allow precision 0 for Oracle Number data type in generic database plugin
  • Loading branch information
katukota-google authored Sep 21, 2022
2 parents 4cb2b1c + 2aca20e commit 14a90c2
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,6 @@ public static Schema getSchema(String typeName, int sqlType, int precision, int

case Types.NUMERIC:
case Types.DECIMAL:
// decimal type with precision 0 is not supported
if (precision == 0) {
throw new SQLException(new UnsupportedTypeException(
String.format("Column %s has unsupported SQL Type: %s with precision 0.", columnName, typeName)));
}
if (handleAsDecimal) {
return Schema.decimalOf(precision, scale);
} else {
Expand Down

0 comments on commit 14a90c2

Please sign in to comment.