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

   So if you took the original multiline SQL you had, but put the first 
statement on the first line with no leading `|`, does that work? I suspect it 
will.
   
   I’m just trying to clarify as I don’t think the issue has anything to do 
with the comment stripping. It would have happened before that.
   
   Even try just
   
   ```
   spark.sql(
         s"""
            |
            |ALTER TABLE hadoop_prod.default.test_evolution5 ADD PARTITION 
FIELD col2
            |/*INSERT INTO hadoop_prod.default.test_evolution5 VALUES (1, 11, 
21)*/
            |--ALTER TABLE hadoop_prod.default.test_evolution5 ADD PARTITION 
FIELD col2
            |--INSERT INTO hadoop_prod.default.test_evolution5 VALUES (2, 12, 
22)
            |
            |--ALTER TABLE hadoop_prod.default.test_evolution5 DROP PARTITION 
FIELD col2
            |--INSERT INTO hadoop_prod.default.test_evolution5 VALUES (3, 13, 
23)
            |--ALTER TABLE hadoop_prod.default.test_evolution5 DROP COLUMN col2
            |""".stripMargin)
   ```
   
   I know why it’s failing but I want to verify that before going on a deep 
explanation.
   


-- 
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