twuebi commented on PR #331:
URL: https://github.com/apache/iceberg-rust/pull/331#issuecomment-2205402299

   Setting the namespace via:
   
   ```python3
   spark.sql("USE spark_demo")
   spark.sql("CREATE view vv3 as select * from spark_demo.mytable")
   ```
   
   ends up setting `default-namespace`:
   
   
   ```json
   {
     "name": "vv3",
     "schema": {
       "schema-id": 0,
       "type": "struct",
       "fields": [
         {
           "id": 0,
           "name": "id",
           "required": false,
           "type": "long"
         },
         {
           "id": 1,
           "name": "strings",
           "required": false,
           "type": "string"
         },
         {
           "id": 2,
           "name": "floats",
           "required": false,
           "type": "double"
         }
       ]
     },
     "view-version": {
       "version-id": 1,
       "schema-id": 0,
       "timestamp-ms": 1719994988301,
       "summary": {
         "engine-version": "3.5.1",
         "app-id": "local-1719994018459",
         "engine-name": "spark",
         "iceberg-version": "Apache Iceberg 1.5.2 (commit 
cbb853073e681b4075d7c8707610dceecbee3a82)"
       },
       "representations": [
         {
           "type": "sql",
           "sql": "select * from spark_demo.my_table",
           "dialect": "spark"
         }
       ],
       "default-namespace": [
         "spark_demo"
       ]
     },
     "properties": {
       "spark.query-column-names": "id,strings,floats",
       "engine_version": "Spark 3.5.1",
       "create_engine_version": "Spark 3.5.1"
     }
   }
   ```


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to