From 1b8dc8f31ad0e0e93b0e69d2d5d99fd020d940dd Mon Sep 17 00:00:00 2001 From: LuisCebrian Date: Thu, 5 Sep 2024 12:42:22 +0200 Subject: [PATCH] fix(bigquery): Increase the number of schemas / tables fetched to 100000 --- autoload/db_ui/schemas.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/db_ui/schemas.vim b/autoload/db_ui/schemas.vim index 81732d8..560bcc4 100644 --- a/autoload/db_ui/schemas.vim +++ b/autoload/db_ui/schemas.vim @@ -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)},