-
Notifications
You must be signed in to change notification settings - Fork 3
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
ALS-8239: Fix PFB encoding issues #217
Conversation
ramari16
commented
Jan 31, 2025
- Update the query result methods to not convert responses to strings, which was breaking the encoding of binary files
@@ -240,7 +240,13 @@ public Response queryResult(String rsURL, String queryId, QueryRequest queryRequ | |||
HttpClientUtil.composeURL(rsURL, pathName), createHeaders(queryRequest.getResourceCredentials()), body | |||
); | |||
|
|||
String content = httpClientUtil.readObjectFromResponse(resourcesResponse); | |||
byte[] content = httpClientUtil.readBytesFromResponse(resourcesResponse); | |||
FileOutputStream fos = new FileOutputStream("/tmp/test.avro"); |
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.
Do we want this (/tmp/test.avro
) hardcoded in this file? If yes, can we move it to the top of the class/file?
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.
Bahhh, this was for debugging. I'll remove it