Skip to content

fix(write): reject reserved timestamp names in JSON - #82

Open
efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/reject-reserved-time-fields
Open

efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/reject-reserved-time-fields

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

--format json accepted reserved time field/tag names and case variants such as Time in columnar data. Arc can partially write these batches, so reject the names before sending a request. Canonical t row timestamps, lowercase time columns and valid Unicode names remain supported. Tests cover single records, arrays and batches, including rejection before the write endpoint is called.

Tested on macOS arm64 with Go 1.27.1: go test -race -count=1 ./..., go vet ./..., go build ./..., gofmt -l . and git diff --check passed. Regression tests reproduced the invalid uploads before the fix. Linux CI and the GoReleaser snapshot have not been run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant