Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengruifeng committed Jan 24, 2025
1 parent a4ceb7e commit 889fd53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/pyspark/ml/connect/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

import pyspark.sql.connect.proto as pb2
from pyspark.ml.linalg import (
VectorUDT,
MatrixUDT,
DenseVector,
SparseVector,
DenseMatrix,
Expand Down Expand Up @@ -184,7 +182,7 @@ def deserialize_param(literal: pb2.Expression.Literal) -> Any:
else:
raise ValueError(f"Unknown Matrix type {tpe}")
else:
raise ValueError(f"Unsupported parameter struct {schema}")
raise ValueError(f"Unknown UDT {jvm_class}")
else:
return LiteralExpression._to_value(literal)

Expand Down

0 comments on commit 889fd53

Please sign in to comment.