[QUERY] Workaround for Java Data Lake SDK 5000 max results limit? #20634
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Docs
Storage
Storage Service (Queues, Blobs, Files)
Query/Question
The List function will return a maximum of 5000 results, as stated here: https://docs.microsoft.com/en-us/java/api/com.azure.storage.file.datalake.models.listpathsoptions?view=azure-java-stable
Assuming I have a directory that has more than 5000 files, how can I list them all?
The rest API for "list" (https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list) has a continuation token to get around this which doesn't seem to be exposed in the Java SDK. Is that correct?
If it's true that I can't use the Java Data Lake SDK for this, what should I use, the rest API directly?
Why is this not a Bug or a feature Request?
Because before I make a feature request I want to make sure I've not missed something obvious.
Setup (please complete the following information if applicable):
Not tested in code yet, just reviewing options from looking at the documentation.
com.azure:azure-storage-file-datalake:12.4.1
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: