I'm kinda new to Scala and have been working on a piece of code that looks like this: I'm kinda confused about how to set the branch variable which ...
I'm kinda new to Scala and have been working on a piece of code that looks like this: I'm kinda confused about how to set the branch variable which ...
I want to execute a following script using Scala3: When I type the command, scala hello.scala, I get the following error: I think it is because ...
I want to follow the book on Scala[1] but it uses Scala 3 and I have Scala 2 installed. I want to use both the versions, something on the lines of pyt ...
I have reduced this example from something encountered in a much larger project; the fundamental issue seems to be that Scala 2.10 has weird or possib ...
I'm having some interop issues calling Jedis (Java) from my Scala code (scala 2.10.4). I have a trait which I've implemented in an implicit class I ...
I have an RDD, and I would like to sum a part of the list. output should look like this, Thanks ...
I have an RDD which was groupByKey as below, (1, CompactBuffer(2.0, 3.0, 4.0)), (2, CompactBuffer(1.0, -1.0, -2.0)) And I wish to mapValues into (1* ...
Is there a way in Scala to assign a variable a value and at the same time use the value in the expression? Like so... I got this error... In ord ...
I have a JSON which is an output of another application, I want to make dynamic Scala code (*.scala file ) from this JSON (can not pre define class/be ...
Spark 1.6.2 and Scala 2.10 here. I want to filter the spark dataframe column with an array of strings. I am getting below error. Unsupported l ...
How can we convert ParArray[(Double, Double, Double, Double, Double)] to Array[(Double, Double, Double, Double, Double)] I have to do this as part o ...
getting error] Modules were resolved with conflicting cross-version suffixes in {file:/hehe/}my-app: [error] com.fasterxml.jackson.module:jackson-mod ...
When I switch to Scala 2.11.8 SDK in IntelliJ, I get the following error during compile. Compiles fine when I use 2.10.6 SDK in IntelliJ with the same ...
I want to create different collection in mongodb for that i have a scala object class here is my code i want to add different collection names for ...
I have a simple function: and a simple test case: it only works in Scala >2.11.3 (because of https://issues.scala-lang.org/browse/SI-6967, th ...
I need to create a scala.collection.immutable.Map but I can't use Scala code, I have to use Java. How is it done? I'm not looking for an empty map, I ...
Having the below builder pattern in Scala. To simplify it, I'm using 3 instances of A such that instance1 contains only field1 and has no connection t ...
I have a list named positiveDays which contains values (2,4,6) and I want to create a list DaysDetails having value of 1 at all the positiveDays indic ...
I want to know what is the best way to work with Apache Spark using Intellij Idea? (specially for Scala programming language) Please explain step-by- ...
I have a generic map with values, some of which can be in turn lists of values. I'm trying to process a given key and convert the results to the type ...