File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
src/main/java/com/google/cloud/pubsublite/spark Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 111
111
<groupId >org.scala-lang</groupId >
112
112
<artifactId >scala-library</artifactId >
113
113
<version >${scala.version} </version >
114
- <scope >provided</scope >
115
114
</dependency >
116
115
<dependency >
117
116
<groupId >org.scala-lang.modules</groupId >
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public static void verifyWriteInputSchema(StructType inputSchema) {
176
176
Option <Object > idxOr = inputSchema .getFieldIndex (k );
177
177
if (!idxOr .isEmpty ()) {
178
178
StructField f = inputSchema .apply ((int ) idxOr .get ());
179
- if (f .dataType () != v ) {
179
+ if (! f .dataType (). sameType ( v ) ) {
180
180
throw new IllegalArgumentException (
181
181
String .format (
182
182
"Column %s in input schema to write to "
You can’t perform that action at this time.
0 commit comments