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

Fixing doc #325

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Fixing doc #325

merged 1 commit into from
Dec 21, 2023

Conversation

bessarabov
Copy link
Contributor

This is definetly an error in doc that I'm fixing.

Here is an example that shows that the text in current doc it not working:

bessarabov@bessarabov-osx:~$ q --version
q version 3.1.6
Python: 3.9.7 (default, Oct 18 2021, 00:59:13) // [Clang 13.0.0 ]
Copyright (C) 2012-2021 Harel Ben-Attia ([email protected], @harelba on twitter)
http://harelba.github.io/q/

bessarabov@bessarabov-osx:~$ cat myfile.delimited-file-with-pipes
my_field|number
a|1
b|2
c|3
bessarabov@bessarabov-osx:~$ q -d , -H "select my_field from myfile.delimited-file-with-pipes"
query error: no such column: my_field
Warning - There seems to be a "no such column" error, and -H (header line) exists. Please make sure that you are using the column names from the header line and not the default (cXX) column names. Another issue might be that the file contains a BOM. Files that are encoded with UTF8 and contain a BOM can be read by specifying `-e utf-9-sig` in the command line. Support for non-UTF8 encoding will be provided in the future.
bessarabov@bessarabov-osx:~$

And here how my fixed doc work (using the same version of q and file):

bessarabov@bessarabov-osx:~$ q -d '|' -H "select my_field from myfile.delimited-file-with-pipes"
a
b
c
bessarabov@bessarabov-osx:~$

@harelba
Copy link
Owner

harelba commented Dec 21, 2023

Thanks! This is indeed a bug in the docs.

@harelba harelba merged commit 03e8b39 into harelba:master Dec 21, 2023
@harelba
Copy link
Owner

harelba commented Dec 25, 2023

Github Actions unfortunately hangs all my workflow for some reason... Trying to fix this.

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 this pull request may close these issues.

2 participants