Skip to content

Commit

Permalink
Merge pull request #5151 from parca-dev/arrow-to-string
Browse files Browse the repository at this point in the history
area/ui: use TextDecoder to decode Arrow table into a string format
  • Loading branch information
yomete authored Oct 2, 2024
2 parents 8f185f5 + 46ee9c9 commit b40e7f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const arrowToString = (buffer: any): string | null => {
return buffer;
}
if (ArrayBuffer.isView(buffer)) {
return String.fromCharCode.apply(null, buffer as unknown as number[]);
return new TextDecoder().decode(buffer);
}
return '';
};

0 comments on commit b40e7f4

Please sign in to comment.