Closed JorisTruong closed 1 year ago
Take a look at this change -- I think the core of this works? maybe adapt this approach https://github.com/databricks/spark-xml/pull/624
I think you have the best answer; I added some more tests in the pull request. I'll try to look into why tests are failing though
I think I figured out the test failure - tiny but subtle issue in handling the param map. See my latest push
@srowen thank you so much for your help!
closes #612
Related to issue #612 and to previous pull request #616.
There are still some issues as
spark.sql.session.timeZone
uses Java'sTimeZone.getDefault.getID
according to the source code here, and it can result in a null value.As a result, it will be mandatory to set
spark.sql.session.timeZone
, otherwisespark-xml
will throw anNoSuchElementException
when trying to retrieve the Spark property withspark.conf.get()
method. Can reproduce this when running theXmlPartitioningSuite
.We may still need a default value for the timezone.