-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Use AirflowJsonEncoder in BaseXCom.serialize_value #16395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use AirflowJsonEncoder in BaseXCom.serialize_value #16395
Conversation
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I would love to have someone more familiar with the encoder to verify if there are no side effects ? Things like performance and some potential serialize/deserialize compatibility come to mind immmediately.
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
Thanks for reviewing. Do you know who is familiar with the encoder and could take a look? Also, CI says |
Let's see who will chime in :). There are a few CODEOWNERS already added automatically so I guess one or few of those nice people will.
Please rebase and push. This is pretty standard and you will likely expect to do couple of those while you iterate on your PRs in Airflow. |
|
Bumping this PR - any chance one of the reviewers could take a look? |
|
Hey Everyone - any comments here? @kaxil :) ? I somehow have a feeling that using the custom encoder is not the best idea. |
kaxil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah please hold off on this one, as a part of #8703 we were hoping/planning to use Serialization code in https://github.com/apache/airflow/blob/19ed074e9c696eb4aff25f3a833e7f359f2b1c38/airflow/serialization/serialized_objects.py to achieve the same and more.
And at some point remove the JsonEncode in airflow.utils in favor of it too.
Yup, that is correct, there was an attempt in #9847 however the PR was abandoned |
closes: #16386
Use the custom
AirflowJsonEncoderwhen serializing a value for XCom.