@@ -88,7 +88,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
88
88
val inputTypes = Try($inputTypes).getOrElse(Nil)
89
89
def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes)
90
90
functionRegistry.registerFunction(name, builder)
91
- UserDefinedFunction(func, dataType)
91
+ UserDefinedFunction(func, dataType, inputTypes )
92
92
}""")
93
93
}
94
94
@@ -120,7 +120,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
120
120
val inputTypes = Try (Nil ).getOrElse(Nil )
121
121
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
122
122
functionRegistry.registerFunction(name, builder)
123
- UserDefinedFunction (func, dataType)
123
+ UserDefinedFunction (func, dataType, inputTypes )
124
124
}
125
125
126
126
/**
@@ -133,7 +133,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
133
133
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: Nil ).getOrElse(Nil )
134
134
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
135
135
functionRegistry.registerFunction(name, builder)
136
- UserDefinedFunction (func, dataType)
136
+ UserDefinedFunction (func, dataType, inputTypes )
137
137
}
138
138
139
139
/**
@@ -146,7 +146,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
146
146
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: Nil ).getOrElse(Nil )
147
147
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
148
148
functionRegistry.registerFunction(name, builder)
149
- UserDefinedFunction (func, dataType)
149
+ UserDefinedFunction (func, dataType, inputTypes )
150
150
}
151
151
152
152
/**
@@ -159,7 +159,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
159
159
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: Nil ).getOrElse(Nil )
160
160
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
161
161
functionRegistry.registerFunction(name, builder)
162
- UserDefinedFunction (func, dataType)
162
+ UserDefinedFunction (func, dataType, inputTypes )
163
163
}
164
164
165
165
/**
@@ -172,7 +172,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
172
172
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: Nil ).getOrElse(Nil )
173
173
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
174
174
functionRegistry.registerFunction(name, builder)
175
- UserDefinedFunction (func, dataType)
175
+ UserDefinedFunction (func, dataType, inputTypes )
176
176
}
177
177
178
178
/**
@@ -185,7 +185,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
185
185
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: Nil ).getOrElse(Nil )
186
186
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
187
187
functionRegistry.registerFunction(name, builder)
188
- UserDefinedFunction (func, dataType)
188
+ UserDefinedFunction (func, dataType, inputTypes )
189
189
}
190
190
191
191
/**
@@ -198,7 +198,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
198
198
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: Nil ).getOrElse(Nil )
199
199
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
200
200
functionRegistry.registerFunction(name, builder)
201
- UserDefinedFunction (func, dataType)
201
+ UserDefinedFunction (func, dataType, inputTypes )
202
202
}
203
203
204
204
/**
@@ -211,7 +211,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
211
211
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: Nil ).getOrElse(Nil )
212
212
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
213
213
functionRegistry.registerFunction(name, builder)
214
- UserDefinedFunction (func, dataType)
214
+ UserDefinedFunction (func, dataType, inputTypes )
215
215
}
216
216
217
217
/**
@@ -224,7 +224,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
224
224
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: Nil ).getOrElse(Nil )
225
225
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
226
226
functionRegistry.registerFunction(name, builder)
227
- UserDefinedFunction (func, dataType)
227
+ UserDefinedFunction (func, dataType, inputTypes )
228
228
}
229
229
230
230
/**
@@ -237,7 +237,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
237
237
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: Nil ).getOrElse(Nil )
238
238
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
239
239
functionRegistry.registerFunction(name, builder)
240
- UserDefinedFunction (func, dataType)
240
+ UserDefinedFunction (func, dataType, inputTypes )
241
241
}
242
242
243
243
/**
@@ -250,7 +250,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
250
250
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: Nil ).getOrElse(Nil )
251
251
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
252
252
functionRegistry.registerFunction(name, builder)
253
- UserDefinedFunction (func, dataType)
253
+ UserDefinedFunction (func, dataType, inputTypes )
254
254
}
255
255
256
256
/**
@@ -263,7 +263,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
263
263
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: Nil ).getOrElse(Nil )
264
264
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
265
265
functionRegistry.registerFunction(name, builder)
266
- UserDefinedFunction (func, dataType)
266
+ UserDefinedFunction (func, dataType, inputTypes )
267
267
}
268
268
269
269
/**
@@ -276,7 +276,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
276
276
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: Nil ).getOrElse(Nil )
277
277
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
278
278
functionRegistry.registerFunction(name, builder)
279
- UserDefinedFunction (func, dataType)
279
+ UserDefinedFunction (func, dataType, inputTypes )
280
280
}
281
281
282
282
/**
@@ -289,7 +289,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
289
289
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: Nil ).getOrElse(Nil )
290
290
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
291
291
functionRegistry.registerFunction(name, builder)
292
- UserDefinedFunction (func, dataType)
292
+ UserDefinedFunction (func, dataType, inputTypes )
293
293
}
294
294
295
295
/**
@@ -302,7 +302,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
302
302
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: Nil ).getOrElse(Nil )
303
303
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
304
304
functionRegistry.registerFunction(name, builder)
305
- UserDefinedFunction (func, dataType)
305
+ UserDefinedFunction (func, dataType, inputTypes )
306
306
}
307
307
308
308
/**
@@ -315,7 +315,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
315
315
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: Nil ).getOrElse(Nil )
316
316
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
317
317
functionRegistry.registerFunction(name, builder)
318
- UserDefinedFunction (func, dataType)
318
+ UserDefinedFunction (func, dataType, inputTypes )
319
319
}
320
320
321
321
/**
@@ -328,7 +328,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
328
328
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: Nil ).getOrElse(Nil )
329
329
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
330
330
functionRegistry.registerFunction(name, builder)
331
- UserDefinedFunction (func, dataType)
331
+ UserDefinedFunction (func, dataType, inputTypes )
332
332
}
333
333
334
334
/**
@@ -341,7 +341,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
341
341
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: Nil ).getOrElse(Nil )
342
342
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
343
343
functionRegistry.registerFunction(name, builder)
344
- UserDefinedFunction (func, dataType)
344
+ UserDefinedFunction (func, dataType, inputTypes )
345
345
}
346
346
347
347
/**
@@ -354,7 +354,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
354
354
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: ScalaReflection .schemaFor[A18 ].dataType :: Nil ).getOrElse(Nil )
355
355
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
356
356
functionRegistry.registerFunction(name, builder)
357
- UserDefinedFunction (func, dataType)
357
+ UserDefinedFunction (func, dataType, inputTypes )
358
358
}
359
359
360
360
/**
@@ -367,7 +367,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
367
367
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: ScalaReflection .schemaFor[A18 ].dataType :: ScalaReflection .schemaFor[A19 ].dataType :: Nil ).getOrElse(Nil )
368
368
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
369
369
functionRegistry.registerFunction(name, builder)
370
- UserDefinedFunction (func, dataType)
370
+ UserDefinedFunction (func, dataType, inputTypes )
371
371
}
372
372
373
373
/**
@@ -380,7 +380,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
380
380
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: ScalaReflection .schemaFor[A18 ].dataType :: ScalaReflection .schemaFor[A19 ].dataType :: ScalaReflection .schemaFor[A20 ].dataType :: Nil ).getOrElse(Nil )
381
381
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
382
382
functionRegistry.registerFunction(name, builder)
383
- UserDefinedFunction (func, dataType)
383
+ UserDefinedFunction (func, dataType, inputTypes )
384
384
}
385
385
386
386
/**
@@ -393,7 +393,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
393
393
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: ScalaReflection .schemaFor[A18 ].dataType :: ScalaReflection .schemaFor[A19 ].dataType :: ScalaReflection .schemaFor[A20 ].dataType :: ScalaReflection .schemaFor[A21 ].dataType :: Nil ).getOrElse(Nil )
394
394
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
395
395
functionRegistry.registerFunction(name, builder)
396
- UserDefinedFunction (func, dataType)
396
+ UserDefinedFunction (func, dataType, inputTypes )
397
397
}
398
398
399
399
/**
@@ -406,7 +406,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
406
406
val inputTypes = Try (ScalaReflection .schemaFor[A1 ].dataType :: ScalaReflection .schemaFor[A2 ].dataType :: ScalaReflection .schemaFor[A3 ].dataType :: ScalaReflection .schemaFor[A4 ].dataType :: ScalaReflection .schemaFor[A5 ].dataType :: ScalaReflection .schemaFor[A6 ].dataType :: ScalaReflection .schemaFor[A7 ].dataType :: ScalaReflection .schemaFor[A8 ].dataType :: ScalaReflection .schemaFor[A9 ].dataType :: ScalaReflection .schemaFor[A10 ].dataType :: ScalaReflection .schemaFor[A11 ].dataType :: ScalaReflection .schemaFor[A12 ].dataType :: ScalaReflection .schemaFor[A13 ].dataType :: ScalaReflection .schemaFor[A14 ].dataType :: ScalaReflection .schemaFor[A15 ].dataType :: ScalaReflection .schemaFor[A16 ].dataType :: ScalaReflection .schemaFor[A17 ].dataType :: ScalaReflection .schemaFor[A18 ].dataType :: ScalaReflection .schemaFor[A19 ].dataType :: ScalaReflection .schemaFor[A20 ].dataType :: ScalaReflection .schemaFor[A21 ].dataType :: ScalaReflection .schemaFor[A22 ].dataType :: Nil ).getOrElse(Nil )
407
407
def builder (e : Seq [Expression ]) = ScalaUDF (func, dataType, e, inputTypes)
408
408
functionRegistry.registerFunction(name, builder)
409
- UserDefinedFunction (func, dataType)
409
+ UserDefinedFunction (func, dataType, inputTypes )
410
410
}
411
411
412
412
// ////////////////////////////////////////////////////////////////////////////////////////////
0 commit comments