Re: register a custom udf

2023-03-21 Thread Guillaume Masse
ratorTables.chain` to join it with >> > `SqlStdOperatorTable.instance()` >> > >> > On Mon, Mar 20, 2023 at 1:39 PM Guillaume Masse < >> > masse.guilla...@narrative.io> wrote: >> > >> >> ah this is Scala, it's a bit shorter to write >> >&g

Re: register a custom udf

2023-03-20 Thread Guillaume Masse
gt; > >> ah this is Scala, it's a bit shorter to write > >> > >> On Mon, Mar 20, 2023 at 1:12 PM Julian Hyde > >> wrote: > >> > >>> What language is this? > >>> > >>>> On Mar 20, 2023, at 9:01 AM, Guill

Re: register a custom udf

2023-03-20 Thread Dan Zou
t;> >>>> On Mar 20, 2023, at 9:01 AM, Guillaume Masse < >>> masse.guilla...@narrative.io> wrote: >>>> >>>> Hi All, >>>> >>>> How can we register a custom udf? I found some solutions on >>> Stackoverflow >>

Re: register a custom udf

2023-03-20 Thread Guillaume Masse
9:01 AM, Guillaume Masse < >> masse.guilla...@narrative.io> wrote: >> > >> > Hi All, >> > >> > How can we register a custom udf? I found some solutions on >> Stackoverflow >> > but they are out of date ( >> > >> https://stackoverflo

Re: register a custom udf

2023-03-20 Thread Guillaume Masse
ah this is Scala, it's a bit shorter to write On Mon, Mar 20, 2023 at 1:12 PM Julian Hyde wrote: > What language is this? > > > On Mar 20, 2023, at 9:01 AM, Guillaume Masse < > masse.guilla...@narrative.io> wrote: > > > > Hi All, > > > > How can we

Re: register a custom udf

2023-03-20 Thread Julian Hyde
What language is this? > On Mar 20, 2023, at 9:01 AM, Guillaume Masse > wrote: > > Hi All, > > How can we register a custom udf? I found some solutions on Stackoverflow > but they are out of date ( > https://stackoverflow.com/questions/44147819/adding-a-user-def

register a custom udf

2023-03-20 Thread Guillaume Masse
Hi All, How can we register a custom udf? I found some solutions on Stackoverflow but they are out of date ( https://stackoverflow.com/questions/44147819/adding-a-user-defined-function-to-calcite ) So far what I have: // top level class class CustomUdf { def foo(in: Double): Double = in + 1