-
Notifications
You must be signed in to change notification settings - Fork 362
add support for for datalake api #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@microsoft-github-policy-service agree company="Incorta" |
|
fix existing test cases by merging different conflicting apis into one and reset enable xml for all except listpaths (done by manual change in generated code by changing isXML of the opration to false) |
|
Thanks so much for raising this PR! However, I have a sanity check on it, and see some problems need fix:
|
b221b68 to
6283ad0
Compare
|
reagrding your commments:
I introduced new endpoint named dfs on port 10003 which support both blob and dfs requests.
I merged both parameters and responds in these cases into the dfs one and removed the blob one
Changes made to blob endpoint are now minimal
for now the HNS is enabled by default in dfs endpoint since some endpoints don't work for non-HNS enabled and in datalake gen2 it makes sense to make HNS enabled by default.
done
done but the recursive one is not supported yet as in the support matrix
should be working now
should be working properly now
permission/group is now included in both
actually according to spec in listPaths each Path should have have isDirectory flag https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list#path
I did almost all needed changes to swagger and documented in dfs.md file that generate the swagger. only remaining changes needed that is not included in the swagger but are also documented in dfs.md:
as far as i can tell the actual generator code is private so don't have access to it to change those
test cases was added specifically for datalake under tests/dfs/storage-file-datalake
added needed changes for readme please check if other changes is needed |
48c797f to
71ab093
Compare
| sasProtocol: string = "https,http", | ||
| requestProtocol: string | ||
| ): boolean { | ||
| if (sasProtocol.includes(",")) { |
Check failure
Code scanning / CodeQL
Type confusion through parameter tampering
| sasProtocol: string = "https,http", | ||
| requestProtocol: string | ||
| ): boolean { | ||
| if (sasProtocol.includes(",")) { |
Check failure
Code scanning / CodeQL
Type confusion through parameter tampering
| authenticationMiddlewareFactory.createAuthenticationMiddleware( | ||
| authenticators | ||
| ) |
Check failure
Code scanning / CodeQL
Missing rate limiting
| return this.context.account; | ||
| } | ||
|
|
||
| public set account(account: string | undefined) { |
Check failure
Code scanning / CodeQL
Insecure randomness
|
Thanks for the update! As this is a big PR we might need more time to review it and will reply you later. For the |
12f4ce9 to
6999337
Compare
* Full support for sql for the same features supported by Loki except for PageBlob * Added clearDb option to configurations in both blob and dfs and set it to true in the test cases * Added support for using postgreSQL in dfs endpoint (needed due to limitations in mysql) without breaking mysql * Added support for permissions save/load, acl, setExpiry, owner and group * Updated visual studio extension file and added binary azurite-datalake,... * Updated readme, swagger definition changes * Updated change log * Added dfs test pipelines to azure-pipelines
2c699e3 to
6d78471
Compare
|
|
@blueww I restructed the PR to reduce duplicate code between blob and dfs end points and splitted it into 2 phases |
The PR was externally tested (through java unit tests that use Hadoop File System and the abfs:// scheme and Azure sdk)
Didn't have enough time to add test cases to the repo itself. May add some in the future if I had the time. or if someone want to do that go ahead.
Address issue #553