Member since
05-15-2018
34
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1590 | 05-15-2019 02:54 PM |
05-15-2019
02:54 PM
c=a*(lit(1)-b)
... View more
03-13-2019
10:38 PM
Hi! I'm trying to define a Scala function in Apache Spark that performs some column arithmetic, but I am running into a compilation error.
Here is my code:
Scala
def sample(a: Column, b: Column): Column = {
var c: Column = null
c = a * (1 - b)
c
}
When I try to use this, I get the following error message:
error: overloaded method value + with alternatives cannot be applied to (org.apache.spark.sql.Column)
How can I fix this arithmetic expression so it works with Spark Column objects?
... View more
Labels:
- Labels:
-
Apache Spark
01-16-2019
09:02 PM
How do I remove a currency symbol from a string and convert it into an int in Hive? For example, how do I change '124$' into 124?
... View more
Labels:
- Labels:
-
Apache Hive