-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(plugins/maxcompute): handle schema-based table listing in resource retrieval #196
fix(plugins/maxcompute): handle schema-based table listing in resource retrieval #196
Conversation
…e retrieval - Refactored the `GetResources` method to account for schema-based table listings in MaxCompute. - Integrated `odpsClient` to retrieve schemas and iterate over them when fetching tables. - Fixed handling of schema exclusions based on credentials. - Ensured pagination support for table listing using markers. - Updated resource URN generation to include schema information when available.
return nil, err | ||
} | ||
|
||
schemaRes := map[string]struct{}{"default": {}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to hardcode "default" here? is the list schemas API not returning the default
schema record?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes understand that, but when we are fetching the list of schemas, are we not getting default
schema in the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, this is to ensure that default scheme is included on list scheme (since I can't run it from my local because I dont have any access key for max compute)
…e retrieval patch 2
…e retrieval patch 3
GetResources
method to account for schema-based table listings in MaxCompute.odpsClient
to retrieve schemas and iterate over them when fetching tables.