Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buggy behavior in %config SqlMagic.style #54

Closed
edublancas opened this issue Jan 1, 2023 · 2 comments · Fixed by #620
Closed

buggy behavior in %config SqlMagic.style #54

edublancas opened this issue Jan 1, 2023 · 2 comments · Fixed by #620
Assignees

Comments

@edublancas
Copy link

I was testing the %config SqlMagic.style and realized it doesn't work well:

image

sometimes the text representation is empty, and changing the style does not affect it.

sample code:

%sql sqlite://
%%sql
CREATE TABLE languages (name, rating, change);
INSERT INTO languages VALUES ('Python', 14.44, 2.48);
INSERT INTO languages VALUES ('C', 13.13, 1.50);
INSERT INTO languages VALUES ('Java', 11.59, 0.40);
INSERT INTO languages VALUES ('C++', 10.00, 1.98);
%config SqlMagic.style = "PLAIN_COLUMNS"
%config SqlMagic.style = "RANDOM"
%config SqlMagic.style = "DEFAULT"
result = %sql SELECT * FROM languages LIMIT 2
print(result.pretty.get_string())
@edublancas
Copy link
Author

note that this is code we inherited from ipython-sql so we don't even know what the purpose is or how it should work.

@AnirudhVIyer
Copy link

On it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants