Hi @XavierPereVives, To whitelist third-party library code, you must ensure that the method you try to access is marked as safe for clusters. If not, you might encounter an Py4JSecurityException
an error indicating that the technique is not whitelisted.
However, the information provided does not contain a specific process to whitelist a method or a third-party library in Databricks.
It seems that the issue you're facing is related to running a structured streaming query on a cluster that has table access control enabled.
Streaming is not supported on clusters with table access control because it requires user interaction to validate and refresh credentials, and streaming queries run continuously.
The recommended solution is to use a cluster that does not have table access control enabled for streaming queries.
Sources:
- [readStream() is not whitelisted error when running a query]
(https://kb.databricks.com/streaming/readstream-is-not-whitelisted)