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
Prev Previous commit
Fixup test
  • Loading branch information
mariusvniekerk committed Nov 6, 2015
commit 8d40495199c4f990754a068b2e1da936e6eff512
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class JDBCSuite extends SparkFunSuite with BeforeAndAfter with SharedSQLContext

val testH2Dialect = new JdbcDialect {
override def canHandle(url: String) : Boolean = url.startsWith("jdbc:h2")
override def getCatalystType(
sqlType: Int, typeName: String, size: Int, md: MetadataBuilder): Option[DataType] =
override def getCatalystType(sqlType: Int, typeName: String, size: Int, scale: Int,
md: MetadataBuilder): Option[DataType] =
Some(StringType)
}

Expand Down Expand Up @@ -437,7 +437,8 @@ class JDBCSuite extends SparkFunSuite with BeforeAndAfter with SharedSQLContext
val agg = new AggregatedDialect(List(new JdbcDialect {
override def canHandle(url: String) : Boolean = url.startsWith("jdbc:h2:")
override def getCatalystType(
sqlType: Int, typeName: String, size: Int, scale: Int, md: MetadataBuilder): Option[DataType] =
sqlType: Int, typeName: String, size: Int, scale: Int,
md: MetadataBuilder): Option[DataType] =
if (sqlType % 2 == 0) {
Some(LongType)
} else {
Expand Down