alekjarmov commented on code in PR #50591: URL: https://github.com/apache/spark/pull/50591#discussion_r2045212853
########## connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/V2JDBCTest.scala: ########## @@ -48,12 +48,26 @@ private[v2] trait V2JDBCTest extends SharedSparkSession with DockerIntegrationFu def notSupportsTableComment: Boolean = false - def defaultMetadata(dataType: DataType = StringType): Metadata = new MetadataBuilder() + def defaultMetadata( + dataType: DataType = StringType, + remoteTypeName: String = "STRING"): Metadata = new MetadataBuilder() .putLong("scale", 0) .putBoolean("isTimestampNTZ", false) .putBoolean("isSigned", dataType.isInstanceOf[NumericType]) + .putString("remoteTypeName", remoteTypeName) .build() + def removeMetadataFromAllFields(structType: StructType, metadataKey: String): StructType = { Review Comment: Added doc -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org