cockroachdb-parser
cockroachdb-parser copied to clipboard
Apache licensed CockroachDB parser and dependencies.
This commit takes the changes from https://github.com/cockroachdb/cockroachdb-parser/pull/9 and applies them as a patch on top of new snapshots until we resolve the dependency issues.
We're using the `tree` package to format auto-generated SQL for tests. It's very useful for this, thanks for the work that has gone into this package. One thing that we...
Attempting to build grpc-gateway v1 using the latest version of io_bazel_go_rules fails due to a breaking change in how io_bazel_go_rules resolves googleapi protobufs (https://github.com/bazelbuild/rules_go/releases/tag/v0.41.0). Version v2.15.2 was chosen because it...
## fix: Fix Build for GOOS=linux GOARCH=arm GOARM=6 Before: ``` GOOS=linux GOARCH=arm GOARM=6 go build ... # github.com/cockroachdb/cockroachdb-parser/pkg/util/timeofday Error: vendor/github.com/cockroachdb/cockroachdb-parser/pkg/util/timeofday/time_of_day.go:150:44: microsecondsPerHour (untyped float constant 3.6e+09) truncated to int make: ***...
## Problem On 32-bit architectures (such as OpenBSD ARM, Linux ARM, etc.), building the parser fails with integer overflow errors: ``` pkg/util/tsearch/eval.go:180:11: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as...
Replaces TrimSuffix with TrimSpace in parseCockroachVersion to correctly handle Windows-style line endings (\r\n) and other trailing whitespace. This prevents version parsing errors when version.txt contains CRLF line endings.