dosubot[bot] commented on issue #31438:
URL: https://github.com/apache/superset/issues/31438#issuecomment-2541669924

   <!-- Greeting -->
   Hey @withnale! I'm here to help you with your Superset issue. I'm a bot 
designed to assist with bugs, questions, and contributions. Let's tackle this 
together!
   
   <!-- Answer -->
   A similar issue was previously reported and closed. The issue was about 
importing a Snowflake database with the `encrypted_extra` field, which was 
resolved by a pull request that allowed the `encrypted_extra` field to be 
imported <sup>[[1]](https://github.com/apache/superset/issues/22348)</sup>.
   
   In your case, the failure when importing a BigQuery datasource with 
`encrypted_extra` parameters via the REST API `/api/v1/database/import` is 
likely due to the schema validation that renames `encrypted_extra` to 
`masked_encrypted_extra`. The schema expects `encrypted_extra` to be renamed to 
`masked_encrypted_extra`, which is automatically handled in the `superset 
import_datasources -p filename.yaml` command. However, when using the REST API, 
this renaming might not occur, leading to a failure if `encrypted_extra` is not 
manually renamed to `masked_encrypted_extra` in the payload 
<sup>[[2]](https://github.com/apache/superset/blob/master/tests/unit_tests/databases/schema_tests.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/ace9b6c5-2b6b-44d3-9eb8-37bfc14b57d4?feedback_type=other)</sup>
   


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