SPRKSCL1001

This code section has parsing errors

Message: This code section has parsing errors. The parsing error was found at: line line number, column column number. When trying to parse statement. This file was not converted, so it is expected to still have references to the Spark API.

Category: Parsing error.

Description

This issue appears when the SMA detects some statement that cannot correctly read or understand in the code of a file, it is called as parsing error. Besides, this issue appears when a file has one or more parsing error(s).

Scenario

Input

Below is an example of invalid Scala code.

/#/(%$"$%

Class myClass {

    def function1() = { 1 }

}

Output

The SMA adds the EWI SPRKSCL1001 to the output code to let you know that the code of the file has parsing errors. Therefore, SMA is not able to process a file with this error.

// **********************************************************************************************************************
// EWI: SPRKSCL1001 => This code section has parsing errors
// The parsing error was found at: line 0, column 0. When trying to parse ''.
// This file was not converted, so it is expected to still have references to the Spark API
// **********************************************************************************************************************
/#/(%$"$%

Class myClass {

    def function1() = { 1 }

}

Recommended fix

Since the message pinpoint the error statement you can try to identify the invalid syntax and remove it or comment out that statement to avoid the parsing error.

Class myClass {

    def function1() = { 1 }

}
// /#/(%$"$%

Class myClass {

    def function1() = { 1 }

}

Additional recommendations

Last updated