Skip to content

Commit

Permalink
Fix character encoding for pfb
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Jan 30, 2025
1 parent 08187c8 commit c72da18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void writeHeader(String[] data) {
dataFileWriter = new DataFileWriter<GenericRecord>(datumWriter);
try {
log.info("Creating temp avro file at " + file.getAbsoluteFile());
dataFileWriter.setCodec(CodecFactory.deflateCodec(CodecFactory.DEFAULT_DEFLATE_LEVEL));
dataFileWriter.setCodec(CodecFactory.nullCodec());
dataFileWriter.create(entitySchema, file);
} catch (IOException e) {
throw new UncheckedIOException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private QueryStatus convertToQueryStatus(AsyncResult entity) {
return status;
}

@PostMapping(value = "/query/{resourceQueryId}/result", produces = "application/octet-stream")
@PostMapping(value = "/query/{resourceQueryId}/result")
public ResponseEntity queryResult(@PathVariable("resourceQueryId") UUID queryId, @RequestBody QueryRequest resultRequest) throws IOException {
AsyncResult result = queryService.getResultFor(queryId.toString());
if (result == null) {
Expand Down

0 comments on commit c72da18

Please sign in to comment.