@@ -107,6 +107,20 @@ These changes are present in [unstable builds](/versions/#unstable-builds) and
107107are slated for inclusion in the next stable release. There may be additional
108108changes 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