diff --git a/pom.xml b/pom.xml
index 6be7b06..396f780 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,7 +154,13 @@
ml.combust.mleap
mleap-runtime_2.11
- 0.14.0
+ 0.15.0
+
+
+
+ org.apache.spark
+ spark-mllib-local_2.11
+ 2.4.5
org.apache.commons
diff --git a/src/main/java/com/amazonaws/sagemaker/helper/DataConversionHelper.java b/src/main/java/com/amazonaws/sagemaker/helper/DataConversionHelper.java
index b412685..af8e517 100644
--- a/src/main/java/com/amazonaws/sagemaker/helper/DataConversionHelper.java
+++ b/src/main/java/com/amazonaws/sagemaker/helper/DataConversionHelper.java
@@ -16,24 +16,14 @@
package com.amazonaws.sagemaker.helper;
-import com.amazonaws.sagemaker.dto.DataSchema;
import com.amazonaws.sagemaker.dto.ColumnSchema;
+import com.amazonaws.sagemaker.dto.DataSchema;
import com.amazonaws.sagemaker.type.BasicDataType;
import com.amazonaws.sagemaker.type.DataStructureType;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
-import java.io.IOException;
-import java.io.StringReader;
-import java.util.List;
-import java.util.stream.Collectors;
-import ml.combust.mleap.core.types.BasicType;
-import ml.combust.mleap.core.types.DataType;
-import ml.combust.mleap.core.types.ListType;
-import ml.combust.mleap.core.types.ScalarType;
-import ml.combust.mleap.core.types.StructField;
-import ml.combust.mleap.core.types.StructType;
-import ml.combust.mleap.core.types.TensorType;
+import ml.combust.mleap.core.types.*;
import ml.combust.mleap.runtime.frame.ArrayRow;
import ml.combust.mleap.runtime.frame.DefaultLeapFrame;
import ml.combust.mleap.runtime.frame.Row;
@@ -43,9 +33,15 @@
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.apache.commons.lang3.StringUtils;
+import org.apache.spark.ml.linalg.Vectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
+import java.io.IOException;
+import java.io.StringReader;
+import java.util.List;
+import java.util.stream.Collectors;
+
/**
* Converter class to convert data between input to MLeap expected types and convert back MLeap helper to Java types
* for output.
@@ -168,12 +164,12 @@ protected Object convertInputDataToJavaType(final String type, final String stru
default:
throw new IllegalArgumentException("Given type is not supported");
}
- } else {
+ } else if (!StringUtils.isBlank(structure) && StringUtils.equals(structure, DataStructureType.ARRAY)) {
List