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

duan xiong commented on CALCITE-4131:
-------------------------------------

The partial default error listener is:
{code:java}
public void fatalError(TransformerException e)
    throws TransformerException
{
    Throwable wrapped = e.getException();
    if (wrapped != null) {
        System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG,
                                        e.getMessageAndLocation(),
                                        wrapped.getMessage()));
    } else {
        System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_MSG,
                                        e.getMessageAndLocation()));
    }
    throw e;
}{code}
It prints the error by System.err .

> the XmlFunctions exception handled by System.out
> ------------------------------------------------
>
>                 Key: CALCITE-4131
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4131
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Haisheng Yuan
>            Assignee: duan xiong
>            Priority: Major
>             Fix For: 1.28.0
>
>
> The error doesn't affect the proceeding of the test suite, and doesn't fail 
> the test. But the error message is not so pleasing:
> {code:java}
> SqlToRelConverterExtendedTest > testCrossJoinLateral1() STANDARD_ERROR
>     [Fatal Error] :1:2: XML document structures must start and end within the 
> same entity.
>     ERROR:  'Could not compile stylesheet'
>     FATAL ERROR:  'XML document structures must start and end within the same 
> entity.'
>                :XML document structures must start and end within the same 
> entity.
> SqlToRelConverterExtendedTest > testMatchRecognizeIn() STANDARD_ERROR
>     ERROR:  'XML document structures must start and end within the same 
> entity.'
>     ERROR:  'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: 
> XML document structures must start and end within the same entity.'
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to