cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Remorph : Getting Error while running remorph-core-0.2.0-SNAPSHOT.jar after Maven build

sangwan
New Contributor

We are encountering an issue while running the remorph-core-0.2.0-SNAPSHOT.jar file after successfully building it using Maven. The build completes without errors, but when we try to execute the generated .jar file, we get the following exception attached in the screenshot.

line No. 56 in Main.scala 

https://github.com/databrickslabs/remorph/blob/main/core/src/main/scala/com/databricks/labs/remorph/...

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

Here are a few steps you can take to debug and resolve this issue:

  1. Check the Code for Either Usage: Look through your codebase for instances where Either is used. Ensure that you are handling both Left and Right cases properly. The error suggests that there is an assumption that the Either is always Right, which is not the case.

  2. Add Logging: Add logging around the areas where Either is used to print out whether the value is Left or Right. This can help you identify where the unexpected Left value is coming from.

  3. Review Recent Changes: If this issue started occurring after recent changes, review those changes to see if any modifications were made to the code handling Either.

  4. Check Dependencies: Ensure that all dependencies are correctly specified and that there are no version mismatches that could cause unexpected behavior.

  5. Unit Tests: Write unit tests for the functions that return Either to ensure that they handle both Left and Right cases correctly.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group