udf Questions

1

Solved

Is it an only option to list all the arguments up to 22 as shown in documentation? https://spark.apache.org/docs/1.5.0/api/scala/index.html#org.apache.spark.sql.UDFRegistration Anyone figured out...
Marron asked 15/10, 2015 at 14:56

1

The common query building pattern in HiveQL (and SQL in general) is to either select all columns (SELECT *) or an explicitly-specified set of columns (SELECT A, B, C). SQL has no built-in mechanism...
Snore asked 28/7, 2015 at 3:30

1

Solved

I created a scaler UDF (called sCurrentAppUser()) in SQL Server 2012 Express and I would like to use this UDF as a default value when defining a table. But every time I try, I get an error of "'sCu...

0

I am trying to register a simple UDF for extracting date functionality in spark using Scala Luna Eclipse IDE. This is my code: sqlContext.udf.register("extract", (dateUnit: String, date : String) ...
Sheffield asked 20/5, 2015 at 9:45

2

Solved

I've noticed that my UDFs recalculate whenever I delete cells. This causes massive delays when deleting entire columns, because the UDF gets called for each and every cell it is used in. So if you'...
Canale asked 23/4, 2015 at 6:13

© 2022 - 2024 — McMap. All rights reserved.