kbendick commented on issue #4603:
URL: https://github.com/apache/iceberg/issues/4603#issuecomment-1105811945

   In fact, I think that your multiline string is winding up with a leading `"` 
character.
   
   It should have the first line without `|` and then all following lines 
should have that.
   
   Compare when placing the first text on the first line when using strip-margin
   ```scala
   scala> :paste
   // Entering paste mode (ctrl-D to finish)
   
   val speech =
   s"""Four score and
        |seven years ago""".stripMargin
   
   
   // Exiting paste mode, now interpreting.
   
   speech: String =
   Four score and
   seven years ago
   ```
   
   vs
   ```scala
   scala> :paste
   // Entering paste mode (ctrl-D to finish)
   
   val speech =
   s"""
       | Four score and
       |seven years ago""".stripMargin
   
   
   // Exiting paste mode, now interpreting.
   
   speech: String =
   "
    Four score and
   seven years ago"
   ```
   
   Notice that the second one has an additional leading `"`. I think that's 
what's causing problems in your multiline string.
   
   Can you try evaluating the multiline string in a shell and seeing what it 
comes out to? I think that's the problem (the text needs to start on the first 
line for multiline strings in Scala).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to