Hyukjin Kwon created SPARK-27346:
------------------------------------

             Summary: Loosen the newline assert condition on 'examples' field 
in ExpressionInfo
                 Key: SPARK-27346
                 URL: https://issues.apache.org/jira/browse/SPARK-27346
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Hyukjin Kwon


I haven't tested by myself and I am not 100% sure if this is going to cause an 
actual problem.

The codes here:

{code}
        assert examples.isEmpty() || examples.startsWith(System.lineSeparator() 
+ "    Examples:");
{code}

Given my speculation, if Spark is built in Linux, and it's executed on Windows, 
it looks possible to throw an exception because encoded newline in the binary 
is {{\n}} but {{System.lineSeparator}} returns {{\r\n}}.

I haven't tested it by myself but I think it's better to loose the condition 
and forget about this problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to