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

Prevent querying column for big file if not indexed #22

Open
geoffreyaldebert opened this issue Jul 31, 2024 · 0 comments
Open

Prevent querying column for big file if not indexed #22

geoffreyaldebert opened this issue Jul 31, 2024 · 0 comments
Assignees

Comments

@geoffreyaldebert
Copy link
Contributor

Relative to datagouv/hydra#114

As we want to prevent user to query columns not indexed when the resource_file is heavy (in resource exceptions), we need to prevent querying these columns from tabular-api :

  • tabular-api already query tables_index first before getting result of a user query. So we have to get columns values from indexes column of this table tables_index.
  • we analyze parameters of the user query and if there is columns not present in the indexes for theses cases, we raise an error and say to user that is not possible to query this column.

We also have to adapt swagger for this type of file. swagger route today generate info for all columns of the table. We want for these type of files to only show columns in indexes in swagger.

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

No branches or pull requests

2 participants