When someone calls --refresh local and --refresh all was never called (so the JSON file does not exist), --refresh local will failed:
FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/.local/sparkdb.schema.json'
To fix this, the user needs to call --refresh all first to have the JSON file created. In my opinion, there should only be --refresh and the code should check if the JSON file exist. If it does, do a local refresh. If it doesn't, do all.
When someone calls
--refresh local
and--refresh all
was never called (so the JSON file does not exist),--refresh local
will failed:FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/.local/sparkdb.schema.json'
To fix this, the user needs to call--refresh all
first to have the JSON file created. In my opinion, there should only be--refresh
and the code should check if the JSON file exist. If it does, do a local refresh. If it doesn't, do all.