[ 
https://issues.apache.org/jira/browse/CALCITE-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14907699#comment-14907699
 ] 

Jan Van Besien commented on CALCITE-897:
----------------------------------------

Yes, it would be the empty string. So it could be

{code}
public static final boolean DEBUG = System.getProperty("calcite.debug") != null;
{code}

Or maybe better if you still want to allow to explicitly set it to false.

{code}
public static final boolean DEBUG = System.getProperty("calcite.debug") != null 
&& !"false".equalsIgnoreCase(System.getProperty("calcite.debug"));
{code}

> minor error in documentation
> ----------------------------
>
>                 Key: CALCITE-897
>                 URL: https://issues.apache.org/jira/browse/CALCITE-897
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Jan Van Besien
>            Assignee: Julian Hyde
>            Priority: Minor
>
> The documentation on https://calcite.incubator.apache.org/docs/howto.html says
> -Dcalcite.debug prints extra debugging information to stdout.
> It has to be -Dcalcite.debug=true.
> Or alternatively the code has to be updated to reflect the documentation, 
> which might be even better in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to