Skip to content

Commit 31cdbdc

Browse files
author
Alex Bush
committed
Added another comment explaining the regexp change
1 parent d054af0 commit 31cdbdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

livy/src/main/java/org/apache/zeppelin/livy/LivySparkSQLInterpreter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ protected List<String> parseSQLOutput(String output) {
197197
// Only match format "|....|"
198198
// skip line like "+---+---+" and "only showing top 1 row"
199199
String line = output.substring(lineStart, lineEnd);
200+
// Use the DOTALL regex mode to match newlines
200201
if (line.matches("(?s)^\\|.*\\|$")) {
201202
List<String> cells = new ArrayList<>();
202203
for (Pair pair : pairs) {

0 commit comments

Comments
 (0)