Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 01:31 AM
[] comes under valid characters, so it is an issue with dbfs.fs.
dbutils.fs.ls("/Workspace/Users/user@databricks.com/qwe[rt]") fails with java.net.URISyntaxException: Illegal character in path at index
I tested a workaround meanwhile that can help you read the file.
%python
path = "file:/Workspace/Users/user@databricks.com/qwe\\[rt\\]/hello"
df = spark.read.text(path)
display(df)
For the Dbfs bug, I see we have an internal tracking ticket SC-163860.
Thanks!