Skip to content

Commit

Permalink
escape newline for dali row schema string (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanghangliu authored May 25, 2021
1 parent a1dfb75 commit b018577
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ static Schema getCasePreservedSchemaFromTblProperties(@Nonnull final Table table
// Then, try dali.row.schema
if (Strings.isNullOrEmpty(schemaStr)) {
schemaStr = table.getParameters().get(DALI_ROW_SCHEMA);
if (!Strings.isNullOrEmpty(schemaStr)) {
schemaStr = schemaStr.replaceAll("\n", "\\\\n");
}
}

if (!Strings.isNullOrEmpty(schemaStr)) {
Expand Down

0 comments on commit b018577

Please sign in to comment.