Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Complile failed on branch-24.04 : literals.scala:32: object codec is not a member of package org.apache.commons #10382

Closed
NvTimLiu opened this issue Feb 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@NvTimLiu
Copy link
Collaborator

NvTimLiu commented Feb 6, 2024

Describe the bug

Complile failed on branch-24.04 : literals.scala:32: object codec is not a member of package org.apache.commons

Note: compile succeeded on branch-24.02

[INFO] Using incremental compilation
[WARNING] Pruning sources from previous analysis, due to incompatible CompileSetup.
[INFO] Compiling 446 Scala sources and 58 Java sources to /home/ubuntu/spark-rapids/sql-plugin/target/spark330db/classes...
[ERROR] /home/ubuntu/spark-rapids/sql-plugin/src/main/scala/com/nvidia/spark/rapids/literals.scala:32: object codec is not a member of package org.apache.commons
[ERROR] import org.apache.commons.codec.binary.{Hex => ApacheHex}
[ERROR]                           ^
[ERROR] /home/ubuntu/spark-rapids/sql-plugin/src/main/scala/com/nvidia/spark/rapids/literals.scala:645: not found: value ApacheHex
[ERROR]     case binary: Array[Byte] => s"0x${ApacheHex.encodeHex(binary, false).mkString}"
[ERROR]                                       ^
[ERROR] /home/ubuntu/spark-rapids/sql-plugin/src/main/scala/com/nvidia/spark/rapids/literals.scala:714: not found: value ApacheHex
[ERROR]     case (v: Array[Byte], BinaryType) => s"X'${ApacheHex.encodeHex(v, false).mkString}'"
[ERROR]                                                ^
[ERROR] /home/ubuntu/spark-rapids/sql-plugin/src/main/scala/com/nvidia/spark/rapids/literals.scala:32: Unused import
[ERROR] import org.apache.commons.codec.binary.{Hex => ApacheHex}
[ERROR]                                         ^
[ERROR] four errors found
@NvTimLiu NvTimLiu added bug Something isn't working ? - Needs Triage Need team to review and classify labels Feb 6, 2024
@jlowe jlowe self-assigned this Feb 6, 2024
@jlowe
Copy link
Member

jlowe commented Feb 6, 2024

This appears to be triggered by a recent change in spark-rapids-private. If I revert that change and install the spark-rapids-private artifact locally, the spark-rapids build passes.

@jlowe
Copy link
Member

jlowe commented Feb 6, 2024

Fixed by updating rapids-4-spark-private 24.04.0-SNAPSHOT artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants