goutam-git commented on code in PR #37065:
URL: https://github.com/apache/spark/pull/37065#discussion_r928926262
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/compression/compressionSchemes.scala:
##########
@@ -421,7 +421,7 @@ private[columnar] case object DictionaryEncoding extends
CompressionScheme {
override def compress(from: ByteBuffer, to: ByteBuffer): ByteBuffer = {
if (overflow) {
Review Comment:
@MaxGekk
on replacing if(overflow) with asser , pyspark test for
CrossValidatorTests is failing for this assertion.
File "/__w/spark/spark/python/pyspark/ml/tests/test_tuning.py", line 141, in
test_copy
cvModel = cv.fit(dataset)
py4j.protocol.Py4JJavaError: An error occurred while calling o48.evaluate.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0
in stage 3.0 failed 1 times, most recent failure: Lost task 0.0 in stage 3.0
(TID 12) (localhost executor driver): java.lang.AssertionError: assertion failed
at scala.Predef$.assert(Predef.scala:208)
at
org.apache.spark.sql.execution.columnar.compression.DictionaryEncoding$Encoder.compress(compressionSchemes.scala:425)
Please advice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]