When executing below I’m getting “KeyError: DEFAULT”
%%sql
select count(*) from classicmodels_obt.orders;
Please help
Thanks
Regards
Ranjit. S
When executing below I’m getting “KeyError: DEFAULT”
%%sql
select count(*) from classicmodels_obt.orders;
Please help
Thanks
Regards
Ranjit. S
Hello @ranjitsrinivasan,
I could reproduce the issue and getting the DEFAULT error. It seems its connected to the prettytable library. You can bypass this if you add a second cell after the libraries impoert. Code to ADD:
from prettytable import PrettyTable , PLAIN_COLUMNS
table = PrettyTable()
table.set_style(PLAIN_COLUMNS)
%config SqlMagic.style = ‘PLAIN_COLUMNS’
Georgios
above solution works
Thanks
thank you Georgios.
your solution works
another solution is to add cell with:
%config SqlMagic.style = '_DEPRECATED_DEFAULT'
right after cell with:
%load_ext sql
@Konstantin Yes I noticed it happens in other labs of this course and as well, I reported the issue and should be fixed soon. Your solution should work too, thanks: