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

   Oh. Actually, I believe that you can't have multiple Iceberg DDL statements 
in one call to `spark.sql`.
   
   I think that's true for normal spark sql as well (e.g. without using Iceberg 
in it at all). Like you couldn't do something like the following:
   ```scala
   spark.sql(
       s"""
         | CREATE TABLE tbl(id bigint, data string) using parquet;
         | INSERT INTO tbl VALUES (0, 'kyle');
         |""".stripMargin
   )
   ```
   
   If you try to do the above and it works, let me know. Otherwise, I think the 
issue is that you need to have only executed statement in each call to 
`spark.sql`.


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