Update cache for the command line command. (#2213)

This commit is contained in:
Bogdan
2017-02-22 12:06:48 -08:00
committed by GitHub
parent 3e0d3584f7
commit 3a91667e92
4 changed files with 11 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ class BaseEngineSpec(object):
@cache_util.memoized_func(
timeout=600,
key=lambda *args, **kwargs: 'db:{}:{}'.format(args[0].id, args[1]))
def fetch_result_sets(cls, db, datasource_type):
def fetch_result_sets(cls, db, datasource_type, force=False):
"""Returns the dictionary {schema : [result_set_name]}.
Datasource_type can be 'table' or 'view'.
@@ -260,7 +260,7 @@ class PrestoEngineSpec(BaseEngineSpec):
@cache_util.memoized_func(
timeout=600,
key=lambda *args, **kwargs: 'db:{}:{}'.format(args[0].id, args[1]))
def fetch_result_sets(cls, db, datasource_type):
def fetch_result_sets(cls, db, datasource_type, force=False):
"""Returns the dictionary {schema : [result_set_name]}.
Datasource_type can be 'table' or 'view'.