Skip to content

Commit

Permalink
Merge pull request #271 from LuisCebrian/fix/increase-number-results
Browse files Browse the repository at this point in the history
fix(bigquery): Increase the number of schemas / tables fetched to 100000
  • Loading branch information
kristijanhusak authored Sep 5, 2024
2 parents 2f34487 + 1b8dc8f commit aa003f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/db_ui/schemas.vim
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,10 @@ let s:bigquery_schema_tables_query = printf("
\ FROM `%s`.INFORMATION_SCHEMA.TABLES
\ ", g:db_adapter_bigquery_region)

let s:db_adapter_bigquery_max_results = 100000
let s:bigquery = {
\ 'callable': 'filter',
\ 'args': ['--format=csv'],
\ 'args': ['--format=csv', '--max_rows=' .. s:db_adapter_bigquery_max_results],
\ 'schemes_query': s:bigquery_schemas_query,
\ 'schemes_tables_query': s:bigquery_schema_tables_query,
\ 'parse_results': {results, min_len -> s:results_parser(results[1:], ',', min_len)},
Expand Down

0 comments on commit aa003f5

Please sign in to comment.