Skip to content
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

Allow sending columns with raw bytes in the python connector #39

Open
lewymati opened this issue Apr 10, 2024 · 0 comments
Open

Allow sending columns with raw bytes in the python connector #39

lewymati opened this issue Apr 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lewymati
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Cannot stream a table with multiple columns via a Python connector, when one of them is of type bytes. For example:

message = {"col1": "foo", "col2": some_bytes}
self.next_json(message)

doesn't work as bytes are not json serializable.
self.next_bytes is not useful as well as it expects bytes encoded json string.

Some workaround is to use base64 to serialize/deserialize, but it's not ideal.

@lewymati lewymati added the enhancement New feature or request label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant