Coder Social home page Coder Social logo

Header lines option does nothing about q HOT 6 CLOSED

harelba avatar harelba commented on May 12, 2024
Header lines option does nothing

from q.

Comments (6)

harelba avatar harelba commented on May 12, 2024

Hi,

Can you please send an example in which it doesn't work?

I've tried the following and it seems to return the correct answers:
harel@harel-laptop:/dev/github/q$ ./q -H 0 "select * from exampledatafile" | wc -l
248
harel@harel-laptop:
/dev/github/q$ ./q -H 1 "select * from exampledatafile" | wc -l
247
harel@harel-laptop:~/dev/github/q$ ./q -H 2 "select * from exampledatafile" | wc -l
246

from q.

dalemyers avatar dalemyers commented on May 12, 2024

So I've looked into it further. It doesn't seem to matter the file. What causes it to break is when I use the '-t' flag to use tab as the delimiter.

from q.

harelba avatar harelba commented on May 12, 2024

Oh, yes, you're right. It's a bug in the -t parameter. I'll fix that in the next revision. In the mean time, you can just use -d $'\t' instead of -t to get the tab delimition (The need for the $ before the '\t' is some linux quirk that was the reason i created the -t parameter in the first place). If you combine -d and -H they will both work. Only the -t "shortcut" is broken.

from q.

harelba avatar harelba commented on May 12, 2024

Beta version providing column name detection through the header will be released later on today.

from q.

harelba avatar harelba commented on May 12, 2024

Beta version 1.3.0b released with this fix. Will close when the version moves out of beta.

from q.

harelba avatar harelba commented on May 12, 2024

Fixed in 1.3.0. Closing.

from q.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.