Re: Creating Flink SQL Row with named fields

2022-02-04 Thread Vladislav Keda
Thanks a lot! --- Best Regards, Vladislav Keda чт, 3 февр. 2022 г. в 12:13, Francesco Guardiani : > Hi, > > Unfortunately at the moment, creating a row with named fields is not > possible from the ROW constructor. > > One solution could be to wrap it in a cast, like: CAST((f0 + 12, 'Hello > wo

Re: Creating Flink SQL Row with named fields

2022-02-03 Thread Francesco Guardiani
Hi, Unfortunately at the moment, creating a row with named fields is not possible from the ROW constructor. One solution could be to wrap it in a cast, like: CAST((f0 + 12, 'Hello world') AS ROW) Or you could create a UDF and use the @DataTypeHint to define the row return type, with named fields.