You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "hxgdada (via GitHub)" <gi...@apache.org> on 2023/06/12 10:07:01 UTC
[GitHub] [iceberg] hxgdada opened a new issue, #7821: Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
hxgdada opened a new issue, #7821:
URL: https://github.com/apache/iceberg/issues/7821
### Apache Iceberg version
None
### Query engine
None
### Please describe the bug 🐞
org.apache.iceberg.rest.HTTPClient
origin:
private StringEntity toJson(Object requestBody) {
try {
return new StringEntity(mapper.writeValueAsString(requestBody));
} catch (JsonProcessingException e) {
throw new RESTException(e, "Failed to write request body: %s", requestBody);
}
}
After modification:
private StringEntity toJson(Object requestBody) {
try {
return new StringEntity(mapper.writeValueAsString(requestBody), Charset.forName("UTF-8"));
} catch (JsonProcessingException e) {
throw new RESTException(e, "Failed to write request body: %s", requestBody);
}
}
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] danielcweeks closed issue #7821: [bug] Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
Posted by "danielcweeks (via GitHub)" <gi...@apache.org>.
danielcweeks closed issue #7821: [bug] Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
URL: https://github.com/apache/iceberg/issues/7821
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] hxgdada commented on issue #7821: [bug] Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
Posted by "hxgdada (via GitHub)" <gi...@apache.org>.
hxgdada commented on issue #7821:
URL: https://github.com/apache/iceberg/issues/7821#issuecomment-1614375891
> This probably makes sense. @hxgdada do you have a small reproducible example?
This is a case study where I used iceberg rest to create a table in trino and found that the Chinese fields became garbled. Through debugging, I found that the iceberg rest service converted the Chinese to a special encoding during HTTP protocol transmission. The screenshot is shown below. Subsequently, I added Charset. forName ("UTF-8") to the HTTP method of iceberg rest to solve this problem
Before modification



After modification


--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on issue #7821: [bug] Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on issue #7821:
URL: https://github.com/apache/iceberg/issues/7821#issuecomment-1613242349
This probably makes sense. @hxgdada do you have a small reproducible example?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on issue #7821: [bug] Encountered Chinese garbled code issue during Iceberg rest HTTP transmission
Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on issue #7821:
URL: https://github.com/apache/iceberg/issues/7821#issuecomment-1632096802
@hxgdada thanks for reporting this. I've opened #8046 that should fix it.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org