Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Temp #21658

Closed
wants to merge 3 commits into from
Closed

WIP: Temp #21658

wants to merge 3 commits into from

Conversation

moulimukherjee
Copy link
Contributor

Motivation

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

benesch and others added 2 commits September 4, 2023 01:01
Support constraining the precision of the fractional seconds in
`timestamp` and `timestamptz` values, as in:

    > SELECT '1970-01-01T00:00:00.666666'::timestamp(3) with time zone
    1970-01-01T00:00:00:00.667

Valid precisions are 0 through 6, where the maximum precision
corresponds to the existing maximum resolution of one microsecond.

This feature comes from PostgreSQL (and possibly the SQL standard; I
didn't check).

While timestamp precision is relatively unimportant on its own, it
unlocks an important Avro feature: generating Avro schemas for
Avro-formatted sinks that use the "timestamp-millis" logical type rather
than the "timestamp-micros" logical type. Specifically, after this
commit, any `timestamp` or `timestamptz` type with a precision of three
or less will be emitted with logical type `timestamp-millis` rather than
`timestamp-micros`.

Fix #21559.
fix tests
@CLAassistant
Copy link

CLAassistant commented Sep 7, 2023

CLA assistant check
All committers have signed the CLA.

fixing docs

Updated round to precision and added unit tests

not using disallowed method

making RangeContainsElem check same for both Timestamp and TimestampTz

Updated test, added 0 precision

fix fmt

fix sqllogictests

Fixing error message

more tests

fix tests?

fix test

adding to scalar type enumerate and interesting datums

test

moar tests!!

test!!!!

and moar

added new tests as per review comments

adding more test cases

Keeping CastDateToString
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.

3 participants