Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
from pyspark.sql import functions as sf spark.range(1).select(sf.sha2(sf.col("id"), 1024)).collect()
Non-connect:
... pyspark.errors.exceptions.captured.IllegalArgumentException: requirement failed: numBits 1024 is not in the permitted values (0, 224, 256, 384, 512)
Connect:
... pyspark.errors.exceptions.connect.AnalysisException: [DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE] Cannot resolve "sha2(id, 1024)" due to data type mismatch: Parameter 1 requires the "BINARY" type, however "id" has the type "BIGINT". SQLSTATE: 42K09; 'Project [unresolvedalias(sha2(id#1L, 1024))] +- Range (0, 1, step=1, splits=Some(1))
Attachments
Issue Links
- links to