You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Sanjay Dasgupta <sa...@gmail.com> on 2018/05/11 14:01:57 UTC

Should max-results = 0 (or max-rows = 0) mean unlimited results?

Many of the interpreters have a parameter named maxResults, max_no_of_rows, max_count, etc whose purpose is to limit the number of output rows displayed (for example from z.show(...)).

In most (or perhaps all) of these implementations, setting this parameter to 0 causes no output to be displayed at all as 0 is taken literally. 

In certain other contexts, the value 0 in a configuration parameter is often used as a special indicator meaning "unlimited". We have at least one recent request for such an interpretation of the value "0" in the maximum output rows parameter (see https://issues.apache.org/jira/browse/ZEPPELIN-3446). 

I would like to ask the user community what they think of making such a change. How common would such use be? are there any downsides?

Thanks for your ideas.


Re: Should max-results = 0 (or max-rows = 0) mean unlimited results?

Posted by David Boyd <db...@incadencecorp.com>.
Sanjay:

     The other convention is that -1 is unlimited.   However, it is 
always possible to set it to MAXINT.
I would think most folks can work around this by setting the value to a 
very high number.  As long as the
constraint only limit printed output (e.g. z.show())  and not what data 
is pulled into the code.


On 5/11/18 10:01 AM, Sanjay Dasgupta wrote:
> Many of the interpreters have a parameter named maxResults, max_no_of_rows, max_count, etc whose purpose is to limit the number of output rows displayed (for example from z.show(...)).
>
> In most (or perhaps all) of these implementations, setting this parameter to 0 causes no output to be displayed at all as 0 is taken literally.
>
> In certain other contexts, the value 0 in a configuration parameter is often used as a special indicator meaning "unlimited". We have at least one recent request for such an interpretation of the value "0" in the maximum output rows parameter (see https://issues.apache.org/jira/browse/ZEPPELIN-3446).
>
> I would like to ask the user community what they think of making such a change. How common would such use be? are there any downsides?
>
> Thanks for your ideas.
>

-- 
========= mailto:dboyd@incadencecorp.com ============
David W. Boyd
VP,  Data Solutions
10432 Balls Ford, Suite 240
Manassas, VA 20109
office:   +1-703-552-2862
cell:     +1-703-402-7908
============== http://www.incadencecorp.com/ ============
ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference Architecture
Chair ANSI/INCITS TC Big Data
Co-chair NIST Big Data Public Working Group Reference Architecture
First Robotic Mentor - FRC, FTC - www.iliterobotics.org
Board Member- USSTEM Foundation - www.usstem.org

The information contained in this message may be privileged
and/or confidential and protected from disclosure.
If the reader of this message is not the intended recipient
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by replying to
this message and deleting the material from any computer.