Read 2026-11-03
heavyai/heavydb: technical due diligence, read from its repository
What Borehole read in heavyai/heavydb's code and history at 8c15222: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE.md: Relicensed: EULA → Apache-2.0 (2017-05-06)CONTRIBUTING.md:16: names Linux Foundation
Architecture & Codebase — including AI provenance
strongjava/calcite/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java is 8,343 lines, 79× this codebase's median file
adequateThe median source file here is 105 lines. 92 files exceed 1,050 lines, the largest being 8,343. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
java/calcite/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:1 — 8,343 lines (79× median) |
ThriftHandler/DBHandler.cpp:1 — 7,946 lines (75× median) |
Catalog/Catalog.cpp:1 — 7,650 lines (72× median) |
Parser/ParserNode.cpp:1 — 7,389 lines (70× median) |
java/calcite/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:1 — 6,820 lines (64× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, v10.0.0, is not on the branch this survey read; the newest release on it is v9.0.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v10.0.0 |
Security & Reliability Posture
adequate2 Dockerfiles run the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
docker/internal/odbc-fsi-deployment/Dockerfile — runs as root |
docker/internal/odbc-fsi-dev/hive/Dockerfile — runs as root |
1 SQL statement built from strings
adequate1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.
java/utility/src/main/java/com/mapd/utility/db_vendors/Db_vendor_types.java:208 — SQL built from a string |
5 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
ThirdParty/LruCache — 1 tracked files, no licence file |
ThirdParty/earcut — 1 tracked files, no licence file |
ThirdParty/geo_samples — 2 tracked files, no licence file |
ThirdParty/linenoise — 7 tracked files, no licence file |
ThirdParty/vulkan — 1 tracked files, no licence file |
Relicensed: EULA → Apache-2.0 (2017-05-06)
adequateThe root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
LICENSE.md — EULA from 2016-09-29 |
LICENSE.md — Apache-2.0 from 2017-05-06 |
Observability & Operations
adequateNo telemetry or error reporting is wired in anywhere
adequateNone of 2,935 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.
| searched 2,935 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched |
No structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| C source is not searched: C programs log through printf-style calls unless they take a library, and none of the 10 searched for is referenced |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
3 of 3 deployed images carry no version, or `latest`
adequate3 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
dev-tools/docker-compose.yml:7 — image without a version |
docker/internal/odbc-fsi-dev/docker-compose.yml:26 — image without a version |
docker/internal/odbc-fsi-dev/docker-compose.yml:34 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on heavyai/heavydb: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.