VarArgs is currently not supported. To add support of VarArgs, things might require to be changed:
1. In function template, a new annotation would be added to mark parameter as VarArgs. 2. In FunctionConverter, need recognize this new annotation, and build the function holder accordingly. 3. FunctionResolver need add logic to handle VarArgs during function resolution. 4. The run-time code generation for VarArgs also would require change. You may check with Yash, since he might have more thoughts about VarArgs support. If you want to have a function which takes an array or map, you may want to consider using complex type's FieldReader / ComplexWriter interface, just like Ted suggested. (Take a look at JsonConvertTo /JsonConvertFrom as example). On Fri, Sep 12, 2014 at 8:15 AM, Ted Dunning <[email protected]> wrote: > On Fri, Sep 12, 2014 at 6:31 AM, Matt Burgess <[email protected]> wrote: > > > SELECT transform("concatTab", *) from dfs.`my_file.csv` > > > > the intent here is that a result set is returned that basically changes a > > CSV file to a TSV result set. > > > > This should be done at a higher level than the SQL itself. >
