vogievetsky opened a new pull request #11450: URL: https://github.com/apache/druid/pull/11450
There is an issue that the web console will parse BigInts from the server response but BigInts can be tricky to do math with:  They do not like to interact with other numbers. This issue could affect several places (we are saved by the fact that most numbers coming back for the service views are not bigint sized - 16+ digits) but one particular place where this cropped up is setting `maxSize` for a historical to over `1 PB` or `1000000000000000` (one followed by 15 zeros). In this PR I added a TypeScript type `NumberLike = number | BigInt` and then used it all over the place where we *might* get a BigInt from the Druid API. TS naturally flags all the arithmetic issues that need an explicit `Number(...)` conversion. So no we can have petabyte scale servers:  This PR has: - [x] been self-reviewed. - [x] been tested in a test Druid cluster. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
