Skip to content

how to enter SparkSession function in SparkQueryCompareTestSuite.scala when I do unit test #5380

Answered by jlowe
chenrui17 asked this question in General
Discussion options

You must be logged in to vote

I was able to step into withSparkSession using a debugger successfully. However that's not how I would normally debug it. If you're interested in debugging the main part of skewJoinTest then I'd place the breakpoint with the lambda function you're actually interested in debugging rather than needing to step your way manually there through the general withSparkSession code.

As to why it's exiting during your debug session, you should check the logs for indication as to what went wrong. Look at recent files within tests/target/surefire-reports/ such as tests/target/surefire-reports/scala-test-detailed-output.log to see if an error was logged. For example, if you're seeing something like Cou…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sameerz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #977 on April 28, 2022 23:07.