@@ -1910,7 +1910,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
1910
1910
// concat uses nonstandard bool -> string casts
1911
1911
// to match historical baggage in PostgreSQL.
1912
1912
ScalarType :: Bool => expr. call_unary( UnaryFunc :: CastBoolToStringNonstandard ( func:: CastBoolToStringNonstandard ) ) ,
1913
- // TODO(materialize#7572): remove call to PadChar
1913
+ // TODO(see < materialize#7572> ): remove call to PadChar
1914
1914
ScalarType :: Char { length } => expr. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ,
1915
1915
_ => typeconv:: to_string( ecx, expr)
1916
1916
} ) ;
@@ -1930,7 +1930,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
1930
1930
// concat uses nonstandard bool -> string casts
1931
1931
// to match historical baggage in PostgreSQL.
1932
1932
ScalarType :: Bool => expr. call_unary( UnaryFunc :: CastBoolToStringNonstandard ( func:: CastBoolToStringNonstandard ) ) ,
1933
- // TODO(materialize#7572): remove call to PadChar
1933
+ // TODO(see < materialize#7572> ): remove call to PadChar
1934
1934
ScalarType :: Char { length } => expr. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ,
1935
1935
_ => typeconv:: to_string( ecx, expr)
1936
1936
} ) ;
@@ -2702,7 +2702,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
2702
2702
// https://www.postgresql.org/docs/current/functions-json.html
2703
2703
"to_jsonb" => Scalar {
2704
2704
params!( Any ) => Operation :: unary( |ecx, e| {
2705
- // TODO(materialize#7572): remove this
2705
+ // TODO(see < materialize#7572> ): remove this
2706
2706
let e = match ecx. scalar_type( & e) {
2707
2707
ScalarType :: Char { length } => e. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ,
2708
2708
_ => e,
@@ -3056,7 +3056,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
3056
3056
params!( Float32 ) => AggregateFunc :: MaxFloat32 => Float32 , 2119 ;
3057
3057
params!( Float64 ) => AggregateFunc :: MaxFloat64 => Float64 , 2120 ;
3058
3058
params!( String ) => AggregateFunc :: MaxString => String , 2129 ;
3059
- // TODO(materialize#7572): make this its own function
3059
+ // TODO(see < materialize#7572> ): make this its own function
3060
3060
params!( Char ) => AggregateFunc :: MaxString => Char , 2244 ;
3061
3061
params!( Date ) => AggregateFunc :: MaxDate => Date , 2122 ;
3062
3062
params!( Timestamp ) => AggregateFunc :: MaxTimestamp => Timestamp , 2126 ;
@@ -3077,7 +3077,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
3077
3077
params!( Float32 ) => AggregateFunc :: MinFloat32 => Float32 , 2135 ;
3078
3078
params!( Float64 ) => AggregateFunc :: MinFloat64 => Float64 , 2136 ;
3079
3079
params!( String ) => AggregateFunc :: MinString => String , 2145 ;
3080
- // TODO(materialize#7572): make this its own function
3080
+ // TODO(see < materialize#7572> ): make this its own function
3081
3081
params!( Char ) => AggregateFunc :: MinString => Char , 2245 ;
3082
3082
params!( Date ) => AggregateFunc :: MinDate => Date , 2138 ;
3083
3083
params!( Timestamp ) => AggregateFunc :: MinTimestamp => Timestamp , 2142 ;
@@ -3088,7 +3088,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
3088
3088
} ,
3089
3089
"jsonb_agg" => Aggregate {
3090
3090
params!( Any ) => Operation :: unary_ordered( |ecx, e, order_by| {
3091
- // TODO(materialize#7572): remove this
3091
+ // TODO(see < materialize#7572> ): remove this
3092
3092
let e = match ecx. scalar_type( & e) {
3093
3093
ScalarType :: Char { length } => e. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ,
3094
3094
_ => e,
@@ -3108,7 +3108,7 @@ pub static PG_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
3108
3108
} ,
3109
3109
"jsonb_object_agg" => Aggregate {
3110
3110
params!( Any , Any ) => Operation :: binary_ordered( |ecx, key, val, order_by| {
3111
- // TODO(materialize#7572): remove this
3111
+ // TODO(see < materialize#7572> ): remove this
3112
3112
let key = match ecx. scalar_type( & key) {
3113
3113
ScalarType :: Char { length } => key. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ,
3114
3114
_ => key,
@@ -3717,7 +3717,7 @@ pub static MZ_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
3717
3717
"map_agg" => Aggregate {
3718
3718
params!( String , Any ) => Operation :: binary_ordered( |ecx, key, val, order_by| {
3719
3719
let ( value_type, val) = match ecx. scalar_type( & val) {
3720
- // TODO(materialize#7572): remove this
3720
+ // TODO(see < materialize#7572> ): remove this
3721
3721
ScalarType :: Char { length } => ( ScalarType :: Char { length } , val. call_unary( UnaryFunc :: PadChar ( func:: PadChar { length } ) ) ) ,
3722
3722
typ => ( typ, val) ,
3723
3723
} ;
0 commit comments