Comments (3)
aha, thank you. and 👍 on allowing double-quotes as is standard.
one note: escaping the backticks isn't necessary in bash (and zsh) if you wrap the whole query in single-quotes, e.g. this works fine:
octosql 'select `key` from myfile.csv'
but if wrapping in double-quotes, you do need to escape the backticks:
octosql "select \`key\` from myfile.csv"
from octosql.
@codekitchen FYI double quotes for literals have been released as part of v0.12.0.
from octosql.
Hey @codekitchen!
You can escape keywords (and also complex file paths) using backticks. So in this case that would be:
SELECT `key` FROM myfile.csv
However, keep in mind that if you're using bash, you need to escape backticks, so the above becomes:
octosql 'SELECT \`key\` FROM myfile.csv'
That said, using double quotes for escaping is a good idea (following the SQL standard, as you said). Thanks for it! It would also partially solve #295.
I'll update the issue title to track adding this (changing from the current behaviour of treating double-quotes as string literals).
from octosql.
Related Issues (20)
- Add REPL HOT 1
- Add Statistical Window Functions HOT 1
- Refactor to support Apache Arrow HOT 3
- queries using filenames that start with non-alpha characters fail HOT 4
- CSV parameter to secify separator
- Support HAVING of GROUP BY HOT 1
- Offset clause in csv query is ignored HOT 1
- File line by line HOT 4
- result of StreamJoin or OuterJoin is not equal with database HOT 4
- Four arithmetic operations between aggregation functions are not supported HOT 12
- GroupBy dimension not work, need replace with distinct HOT 3
- unsupported expression CaseExpr HOT 2
- Add charindex(String, String) function HOT 3
- Add substring_index(String, String, Int) function HOT 2
- Panic in parquet query
- Can this project be used as a Go dependency library?
- Decoding Error when Reading Parquet File - "RLE: Decoded Run-Length Block"
- Add Int64 type
- 't' and 'f' strings in csv are considered as boolean
- Complex CTE usage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octosql.