You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/05/25 08:43:16 UTC

[GitHub] [airflow] hussein-awala commented on issue #31499: XCom - Attribute Error when serializing output of `Merge Into` databricks sql command.

hussein-awala commented on issue #31499:
URL: https://github.com/apache/airflow/issues/31499#issuecomment-1562517453

   I believe it's a specific issue with the Databricks provider, where the Row class does not allow access to private attributes and methods. You can see the relevant code [here](https://github.com/databricks/databricks-sql-python/blob/6f8314459736762cabab59ddfaf743dc41030c96/src/databricks/sql/types.py#LL159C1-L170C39).
   
   However, the new serializer introduced in version 2.6.0 (refactored in #28067) requires access to the method name in order to serialize the object.
   
   Can you try to extend the operator class, and override the `run` method to convert the output from a list of `Row` to a list of tuples or dicts?


-- 
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: commits-unsubscribe@airflow.apache.org

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