palantir-python-sdk icon indicating copy to clipboard operation
palantir-python-sdk copied to clipboard

Double read() required for unstructured DATASETS

Open djsmith17 opened this issue 2 years ago • 0 comments

I have been reviewing the examples in the README and wanted to try READ/WRITE of data stored in unstructured datasets. Specifically testing out the example seen here. I have a very basic DATASET set up on Foundry/NIDAP which contains a .txt and a .png file, seen below:

image

Showing the list of files in the DATASET works great. As seen below: image

However, the next step I am trying is to read the string from within the .txt file. Following the example I receive the following: image

However, through trial and error I found that adding another .read() at the end, gives me the output I expect. image

So my question is there a problem with the way I have set up my DATASET? Is the SDK example out of date? Let me know if there is something I am missing here. Thank you so much for your attention.

djsmith17 avatar Feb 12 '23 20:02 djsmith17