NickLarsenNZ commented on PR #25872:
URL: https://github.com/apache/superset/pull/25872#issuecomment-1847319249

   @FGrobelny, just wanted to clarify if this should work for importing a Zip 
via the api (`POST /api/v1/assets/import`)?
   
   I am getting the following error (in superset 3.0.1):
   
   ```json
   {
     "errors": [
       {
         "message": "Error importing assets",
         "error_type": "GENERIC_COMMAND_ERROR",
         "level": "warning",
         "extra": {
           "databases/Trino_tpch.yaml": {
             "impersonate_user": [
               "Unknown field."
             ]
           },
           "issue_codes": [
             {
               "code": 1010,
               "message": "Issue 1010 - Superset encountered an error while 
running a command."
             }
           ]
         }
       }
     ]
   }
   ```
   
   I have no other assets, just this connection:
   
   ```yaml
   database_name: Trino tpch
   sqlalchemy_uri: trino://superset:XXXXXXXXXX@trino:8443/tpch?verify=false
   cache_timeout: null
   expose_in_sqllab: true
   allow_run_async: false
   allow_ctas: false
   allow_cvas: false
   allow_dml: false
   allow_csv_upload: false
   impersonate_user: true # here's what I added, and no the import breaks
   extra:
     allows_virtual_table_explore: true
   uuid: 82944780-fbb2-45a9-9450-f1e730a2915b
   version: 1.0.0
   ```
   
   If I create the connection manually and export it, it doesn't contain 
`impersonate_user: true`.


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