Skip to content

Commit c32d67a

Browse files
authored
Fix release notes for #10027 (#10510)
Breaking changes are supposed to be listed first in the release notes. PR #10027 mistakenly did not list it's breaking changes first, so this commit fixes that.
1 parent cdcbc6b commit c32d67a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

doc/user/content/release-notes.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ These changes are present in [unstable builds](/versions/#unstable-builds) and
107107
are slated for inclusion in the next stable release. There may be additional
108108
changes that have not yet been documented.
109109

110+
- **Breaking change.** Return an error when [`extract`](/sql/functions/extract/)
111+
is called with a [`date`] value but a time-related field (e.g., `SECOND`).
112+
113+
Previous versions of Materialize would incorrectly return `0` in these cases.
114+
The new behavior matches PostgreSQL.
115+
116+
[`date_part`](/sql/functions/date-part/) still returns a `0` in these cases,
117+
which matches the PostgreSQL behavior {{% gh 9853 %}}.
118+
119+
- **Breaking change.** Change the return type of [`extract`](/sql/functions/extract/)
120+
from [`float`](/sql/types/float/) to [`numeric`](/sql/types/numeric/).
121+
122+
This new behavior matches PostgreSQL v14 {{% gh 9853 %}}.
123+
110124
- Add the [`greatest`](/sql/functions/#generic) and [`least`](/sql/functions/#generic)
111125
functions.
112126

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

123-
- **Breaking change.** Return an error when [`extract`](/sql/functions/extract/)
124-
is called with a [`date`] value but a time-related field (e.g., `SECOND`).
125-
126-
Previous versions of Materialize would incorrectly return `0` in these cases.
127-
The new behavior matches PostgreSQL.
128-
129-
[`date_part`](/sql/functions/date-part/) still returns a `0` in these cases,
130-
which matches the PostgreSQL behavior.
131-
132-
- **Breaking change.** Change the return type of [`extract`](/sql/functions/extract/)
133-
from [`float`](/sql/types/float/) to [`numeric`](/sql/types/numeric/).
134-
135-
This new behavior matches PostgreSQL v14.
136-
137137
- Follow PostgreSQL's type conversion rules for the relations involved in a
138138
`UNION`, `EXCEPT`, or `INTERSECT` operation {{% gh 3331 %}}.
139139

0 commit comments

Comments
 (0)