0.11.0
0.11.0 introduces new date
, text
& math
modules with lots of standard functions, including a new date.to_text
function. It contains a few bugs fixes, and lots of internal improvements to the compiler.
This release has 119 commits from 9 contributors. Selected changes:
Language:
- Breaking:
group
'sby
columns are now excluded from the partition. (#3490) - Breaking:
round
is now in themath
module and needs to be called viamath.round
. (#3928) - Breaking:
lower
andupper
are now in thetext
module and need to be called viatext.lower
andtext.upper
. (#3913, #3973)
Features:
- The
std.in
function now supports a list of values (@PrettyWood, #3883) - Most standard mathematical functions are now supported:
abs
,floor
,ceil
,pi
,exp
,ln
,log10
,log
,sqrt
,degrees
,radians
,cos
,acos
,sin
,asin
,tan
,atan
,pow
andround
. Those functions are in themath
module (@PrettyWood, #3909, #3916 & 3928) - Most standard string functions are now supported:
ltrim
,rtrim
,trim
,length
,extract
,replace
. Utility functionsstarts_with
,contains
andends_with
are also available. Those functions are in thetext
module (@PrettyWood, #3913, #3973) - Formatting a date to a text is now available for Clickhouse, DuckDB, MySQL, MSSQL and Postgres. A new
date
module has been added with theto_text
function (@PrettyWood, #3951, #3954 & #3955)
Fixes:
- Fix an issue with arithmetic precedence (@max-sixty, #3846)
+
and-
can be used after a cast (@PrettyWood, #3923)- The Lezer grammar had plenty of improvements and fixes. (@vanillajonathan)
Web:
- The Playground now uses Vite. (@vanillajonathan)
Internal changes:
New Contributors:
- @PrettyWood, with #3883