File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/io/cdap/plugin/gcp/bigquery/sqlengine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ private Dataset<Row> convertFieldTypes(Dataset<Row> ds) {
123123 }
124124
125125 // Handle Int types
126- if (fieldSchema .getType () == Schema .Type .INT && fieldSchema . getLogicalType () == null ) {
126+ if (fieldSchema .getType () == Schema .Type .INT ) {
127127 LOG .trace ("Converting field {} to Integer" , fieldName );
128128 ds = ds .withColumn (fieldName , ds .col (fieldName ).cast (DataTypes .IntegerType ));
129129 }
130130
131131 // Handle float types
132- if (fieldSchema .getType () == Schema .Type .FLOAT && fieldSchema . getLogicalType () == null ) {
132+ if (fieldSchema .getType () == Schema .Type .FLOAT ) {
133133 LOG .trace ("Converting field {} to Float" , fieldName );
134134 ds = ds .withColumn (fieldName , ds .col (fieldName ).cast (DataTypes .FloatType ));
135135 }
You can’t perform that action at this time.
0 commit comments