You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently (1.6.0), SQLLine doesn't provide a nice user experience by default because:
The default output format is table.
The incremental option is set to true by default and often destroys the table output because columns cannot be properly aligned.
My personal experience is that people usually use the table output format when doing interactive short queries with relatively short outputs, where the incremental mode doesn't help a lot. On the other hand, if a user wants to extract a lot of data from SQLLine s/he probably wants to use either the JSON or the CSV output format and pipe the results to some other tools for further processing. Not sure whether my experience conforms to most SQLLine users. If yes, setting incremental to false might make more sense.
When trying SQLLine for the first time, I thought there was a bug in column widths computation, and I always fall back to the CSV output format for daily uses. Only until much later, when I was trying to find and fix this "bug", I discovered the incremental option from the SQLLine source code. The fact that there's no command line option for setting the incremental option makes this option even harder to discover (I don't think most users read through the manual when trying SQLLine for the first time).
If flipping the default incremental value is not feasible, adding a --incremental command line option may make this feature more discoverable and easier to tune (e.g., alias sqlline sqlline --incremental=false)
EDIT:
I just realized that it's possible to set any SQLLine options using --option-name=value and I can already do --incremental=false. So, it was the fact that --incremental didn't appear in the help message that made it hard to discover for me. Shall we add --incremental to the help message? Or maybe add all the options to the help message?
The text was updated successfully, but these errors were encountered:
liancheng
changed the title
Flip default value of the incremental option and/or add a command line option for it.
Flip default value of the incremental option and/or add --incremental into the help message
Nov 28, 2018
Currently (1.6.0), SQLLine doesn't provide a nice user experience by default because:
table
.incremental
option is set totrue
by default and often destroys the table output because columns cannot be properly aligned.My personal experience is that people usually use the table output format when doing interactive short queries with relatively short outputs, where the
incremental
mode doesn't help a lot. On the other hand, if a user wants to extract a lot of data from SQLLine s/he probably wants to use either the JSON or the CSV output format and pipe the results to some other tools for further processing. Not sure whether my experience conforms to most SQLLine users. If yes, settingincremental
to false might make more sense.When trying SQLLine for the first time, I thought there was a bug in column widths computation, and I always fall back to the CSV output format for daily uses. Only until much later, when I was trying to find and fix this "bug", I discovered the
incremental
option from the SQLLine source code.The fact that there's no command line option for setting theincremental
option makes this option even harder to discover (I don't think most users read through the manual when trying SQLLine for the first time).If flipping the defaultincremental
value is not feasible, adding a--incremental
command line option may make this feature more discoverable and easier to tune (e.g.,alias sqlline sqlline --incremental=false
)EDIT:
I just realized that it's possible to set any SQLLine options using
--option-name=value
and I can already do--incremental=false
. So, it was the fact that--incremental
didn't appear in the help message that made it hard to discover for me. Shall we add--incremental
to the help message? Or maybe add all the options to the help message?The text was updated successfully, but these errors were encountered: