12-22-2022 05:31 AM
Hey! So I'm struggling to read a multiline json. Some details:
I can read it just fine using the text read:
But, if I try to read it normally as json without multiline option, I get corrupted string after some time reading(perhaps as expected)
But, if I instead use multiline option then I immediately get an error:
Can anyone give me some pointers towards what is wrong? If I uncomment the last line I get the same error:
IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: enheter_full_2022-12-22T13:07:10.4988008Z_b744d2f4-5eb5-41a0-a546-e0514c7db325.json.gz
Does anyone know how to fix this? All the googling I've done suggests this is a problem with my path starting with "/", but my path starts with abfss:...
12-22-2022 05:49 AM
That's a pretty old issue with having ':' sign in a file name.
As of now there's no perfect workaround other than simply renaming the file or moving file names into a list (needs to be tested).
You can read more here:
https://stackoverflow.com/questions/48909921/struggling-with-colon-in-file-names
12-22-2022 05:41 AM
it seems to be your url, and the last part to be more precise.
what happens if you pass the complete path?
12-22-2022 05:49 AM
That's a pretty old issue with having ':' sign in a file name.
As of now there's no perfect workaround other than simply renaming the file or moving file names into a list (needs to be tested).
You can read more here:
https://stackoverflow.com/questions/48909921/struggling-with-colon-in-file-names
12-22-2022 06:00 AM
Thanks a lot for the help! Removing colon fixed it. Now I need to fix the Data Factory instance that writes to my storage container. Hope it's easy, Data Factory is such a hassle.
12-27-2022 03:13 PM
Please mark any if the given responses as best. Thank you in advance.
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