You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@quickstep.apache.org by Dylan Bacon <db...@wisc.edu> on 2017/12/06 07:18:58 UTC
Query Rows Returned Printing Disable
Hello,
Where in the code while printing a query is the (x rows) part printed? I
am not seeing a flag for that like I am for time and I think that
including a flag to disable that would help end user applications not
have to parse that message away. I'm seeing the code that determines the
tuples in a relation, but not the printing part of the code that
actually outputs that result.
--
Regards,
Dylan Bacon
University of Wisconsin - Madison
Department of Computer Sciences
dbacon@wisc.edu
Re: Query Rows Returned Printing Disable
Posted by Harshad Deshmukh <ha...@cs.wisc.edu>.
Hi Robert,
Please feel free to create a PR to merge the changes regarding quickstep::FLAGS_display_relation_size.
Thanks,
Harshad
________________________________
From: Robert Claus <ro...@gmail.com>
Sent: Wednesday, December 6, 2017 10:24:12 AM
To: dev@quickstep.incubator.apache.org
Subject: Re: Query Rows Returned Printing Disable
I'm pretty sure it's in QuickstepCLI.cpp calling
PrintToScreen::PrintOutputSize. In the branch I created for supporting csv
output
<https://github.com/robertclaus/incubator-quickstep/tree/network-client-apis>I
also added a flag to turn this off: quickstep::FLAGS_display_relation_size.
In QuickstepCLI.cpp:
if (query_result_relation) {
PrintToScreen::PrintRelation(*query_result_relation,
&storage_manager, io_handle->out());
PrintToScreen::PrintOutputSize(*query_result_relation,
&storage_manager, io_handle->err());
DropRelation::Drop(*query_result_relation, query_processor->
getDefaultDatabase(), &storage_manager);
}
On Wed, Dec 6, 2017 at 1:18 AM, Dylan Bacon <db...@wisc.edu> wrote:
> Hello,
>
> Where in the code while printing a query is the (x rows) part printed? I
> am not seeing a flag for that like I am for time and I think that including
> a flag to disable that would help end user applications not have to parse
> that message away. I'm seeing the code that determines the tuples in a
> relation, but not the printing part of the code that actually outputs that
> result.
>
> --
> Regards,
>
> Dylan Bacon
> University of Wisconsin - Madison
> Department of Computer Sciences
> dbacon@wisc.edu
>
>
Re: Query Rows Returned Printing Disable
Posted by Robert Claus <ro...@gmail.com>.
I'm pretty sure it's in QuickstepCLI.cpp calling
PrintToScreen::PrintOutputSize. In the branch I created for supporting csv
output
<https://github.com/robertclaus/incubator-quickstep/tree/network-client-apis>I
also added a flag to turn this off: quickstep::FLAGS_display_relation_size.
In QuickstepCLI.cpp:
if (query_result_relation) {
PrintToScreen::PrintRelation(*query_result_relation,
&storage_manager, io_handle->out());
PrintToScreen::PrintOutputSize(*query_result_relation,
&storage_manager, io_handle->err());
DropRelation::Drop(*query_result_relation, query_processor->
getDefaultDatabase(), &storage_manager);
}
On Wed, Dec 6, 2017 at 1:18 AM, Dylan Bacon <db...@wisc.edu> wrote:
> Hello,
>
> Where in the code while printing a query is the (x rows) part printed? I
> am not seeing a flag for that like I am for time and I think that including
> a flag to disable that would help end user applications not have to parse
> that message away. I'm seeing the code that determines the tuples in a
> relation, but not the printing part of the code that actually outputs that
> result.
>
> --
> Regards,
>
> Dylan Bacon
> University of Wisconsin - Madison
> Department of Computer Sciences
> dbacon@wisc.edu
>
>