googleapis / googleapis/google-api-java-client

JacksonGenerator serializes byte[] as array of numbers

未關閉
#1,012 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
priority: p4 type: feature request
主要語言
Java
星號
1.5k
分支
772
平均合併
1 小時 44 分鐘
30 天內合併 PR
1

描述

Is this the preferred behavior?

As far as I know Jackson by default encodes `byte[]` to Base64 strings, why this change? In there any point where the array of numbers representation is useful?

I am asking because this behavior forces users to do the base64 encoding by themselves when loading [BYTES](https://cloud.google.com/bigquery/data-types) data into a BigQuery table using [`TableDataInsertAllRequest`](https://developers.google.com/resources/api-libraries/documentation/bigquery/v2/java/latest/com/google/api/services/bigquery/model/TableDataInsertAllRequest.html).

貢獻指南

開啟貢獻指南

研究方向

首先找到 JacksonGenerator,並檢查 byte[] 值的序列化方式。將其輸出與連結的 BigQuery BYTES 文件以及 TableDataInsertAllRequest 的使用方式進行比較。當預期的表示方式取得共識,並透過一項針對性的回歸測試驗證後,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
google-cloud, java
領域
api, cloud
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。