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

ALS-8239: Fix PFB encoding issues #217

Merged
merged 8 commits into from
Jan 31, 2025
Merged

ALS-8239: Fix PFB encoding issues #217

merged 8 commits into from
Jan 31, 2025

Conversation

ramari16
Copy link
Contributor

  • Update the query result methods to not convert responses to strings, which was breaking the encoding of binary files

@ramari16 ramari16 added the bug Something isn't working label Jan 31, 2025
@@ -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");
Copy link
Contributor

@srpiatt srpiatt Jan 31, 2025

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?

Copy link
Contributor Author

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

@ramari16 ramari16 merged commit 5549237 into release Jan 31, 2025
3 checks passed
@ramari16 ramari16 deleted the ALS-8239 branch January 31, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants