Skip to content
Closed
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
Next Next commit
Do not create custom catalyst types from Oracle decimal columns
  • Loading branch information
Gabor Feher committed Apr 28, 2017
commit 2dadd29b6713e9f19ce001614a30cfa9ff003f77
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ private case object OracleDialect extends JdbcDialect {
// Not sure if there is a more robust way to identify the field as a float (or other
// numeric types that do not specify a scale.
case _ if scale == -127L => Option(DecimalType(DecimalType.MAX_PRECISION, 10))
case 1 => Option(BooleanType)
case 3 | 5 | 10 => Option(IntegerType)
case 19 if scale == 0L => Option(LongType)
case 19 if scale == 4L => Option(FloatType)
case _ => None
}
} else {
Expand Down