Skip to content

Fix release notes for #10027 #10510

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

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions doc/user/content/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,20 @@ These changes are present in [unstable builds](/versions/#unstable-builds) and
are slated for inclusion in the next stable release. There may be additional
changes that have not yet been documented.

- **Breaking change.** Return an error when [`extract`](/sql/functions/extract/)
is called with a [`date`] value but a time-related field (e.g., `SECOND`).

Previous versions of Materialize would incorrectly return `0` in these cases.
The new behavior matches PostgreSQL.

[`date_part`](/sql/functions/date-part/) still returns a `0` in these cases,
which matches the PostgreSQL behavior {{% gh 9853 %}}.

- **Breaking change.** Change the return type of [`extract`](/sql/functions/extract/)
from [`float`](/sql/types/float/) to [`numeric`](/sql/types/numeric/).

This new behavior matches PostgreSQL v14 {{% gh 9853 %}}.

- Add the [`greatest`](/sql/functions/#generic) and [`least`](/sql/functions/#generic)
functions.

Expand All @@ -120,20 +134,6 @@ changes that have not yet been documented.
- Support the [`radians`](/sql/functions/#trigonometric-func) and
[`degrees`](/sql/functions/#trigonometric-func) functions.

- **Breaking change.** Return an error when [`extract`](/sql/functions/extract/)
is called with a [`date`] value but a time-related field (e.g., `SECOND`).

Previous versions of Materialize would incorrectly return `0` in these cases.
The new behavior matches PostgreSQL.

[`date_part`](/sql/functions/date-part/) still returns a `0` in these cases,
which matches the PostgreSQL behavior.

- **Breaking change.** Change the return type of [`extract`](/sql/functions/extract/)
from [`float`](/sql/types/float/) to [`numeric`](/sql/types/numeric/).

This new behavior matches PostgreSQL v14.

- Follow PostgreSQL's type conversion rules for the relations involved in a
`UNION`, `EXCEPT`, or `INTERSECT` operation {{% gh 3331 %}}.

Expand Down