Skip to content
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

Update to storage-manager release #343

Merged
merged 5 commits into from
Jul 31, 2018
Merged

Update to storage-manager release #343

merged 5 commits into from
Jul 31, 2018

Conversation

luzzu-lab
Copy link
Collaborator

  • Fixes stack overflow issue
  • Adds optional limits to queries and downloads
  • Adds optional limit to the download API as query param
  • Adds keep-alive mechanism for livy client
  • Reinforces naive validations for query APIs + tests
  • Fixes API documentation

@luzzu-lab luzzu-lab requested a review from gruggiero July 31, 2018 11:45
case (None, None) => dataframe
case (None, Some(value)) => dataframe.limit { value }
case (Some(value), None) => dataframe.limit { value }
case (Some(value), Some(default)) => dataframe.limit { math.min(value, default) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why take the min here? Wouldn't be a little misleading for the user to get a lesser number of rows respect to the parameter he submitted (if the defaultLimit is minor than limit)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The min is a defensive measure in that the optional default limit set in the configuration is used to set the absolute maximum number of rows that the quick APIs are allowed to return.

The problem is that it will not be clear in certain situations whether the number of rows returned is actually legit, or just the server’s maximum but i don’t think that there is another way to set a bound, and there is also no clear way to relay this information to the user.

Note that there’s always a check on the size of the data before we do the quick methods
so in theory this is a optional last stand on the server part so to say.

@luzzu-lab luzzu-lab merged commit d8fb6a9 into master Jul 31, 2018
@luzzu-lab luzzu-lab deleted the fix-api-bulk branch July 31, 2018 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants