Hi!
I have registered a spark model and generated a serving endpoint based on that.
I am calling the endpoint with the relevant dataframe, somehow I got below errors. Could anyone show me how to tackle it, please?🙏
"Exception: Request failed with status 400, {"error_code": "BAD_REQUEST", "message": "Encountered an unexpected error while evaluating the model. Verify that the serialized input Dataframe is compatible with the model for inference. Error 'requirement failed: Column features must be of type class org.apache.spark.ml.linalg.VectorUDT:struct<type:tinyint,size:int,indices:array<int>,values:array<double>> but was actually class org.apache.spark.sql.types.StringType$:string.'"}
"