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

How to select a column name containing spaces? #79

Closed
infojunkie opened this issue Jun 26, 2022 · 5 comments
Closed

How to select a column name containing spaces? #79

infojunkie opened this issue Jun 26, 2022 · 5 comments

Comments

@infojunkie
Copy link

In the attached xlsx sheet, the header contains a column with spaces. How can I select this column? Writing dsq space.xlsx "SELECT \"Header with Space\" as header" yields:

[{"header":"Header with Space"}]

which is not what I meant.

@eatonphil
Copy link
Member

Which version of dsq are you running? There was a spaces related bug fix in 0.20.2

@infojunkie
Copy link
Author

infojunkie commented Jun 26, 2022

Runing 0.20.2 here. I brielfy looked at the commits, and it seems you are quoting the sqlite fields - but here I'm talking about the cli invocation. I also failed to access the field from within the repl.

@eatonphil
Copy link
Member

What shell are you using? It works for me on both mac:

image

And linux:

image

@infojunkie
Copy link
Author

Oh, I was writing "SELECT \"Header with Space\" as header" without from {}. Sorry!

@eatonphil
Copy link
Member

aha yeah I missed that in your initial message. Great!

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

No branches or pull requests

2 participants