Closed fpopic closed 6 years ago
So if you move the creating the dataset and test inside of the test function instead of globally for the class does that still have the issue?
OK, it means that Spark things can live inside test function only, I can live with that.
I added: "org.apache.spark" %% "spark-hive" % spark % Test to library dependencies and now everything works as expected.
Thank you very much!
@fpopic or @holdenk does this mean we can not really fake 'shared' data frame to be used in different test functions?
I found another issued talked about using super.beforeAll see #180
I want to test/compare two dataframes using DataFrameSuiteBase but it appears that SparkSession object is null all the time and never gets created while tests are running?
my build.sbt
I run test within IntelliJ IDEA:
And everything works fine if I do it manually with BeforeAndAfter:
Error (when I run debugger it shows that spark is null) :