Skip to main content
2 votes
0 answers
79 views

I have posted a question related to "contains" in the past. The signature of "contains" on Seq is: def contains[A1 >: A](elem: A1): Boolean Which explains why this code does ...
Jacques Lemieux's user avatar
Advice
1 vote
4 replies
53 views

I'm willing to progress into the subject of introducing java modules into Apache Spark. They are needed for: sorting and avoiding conflicts between dependencies. allow Spark modules to be integrated ...
Marc Le Bihan's user avatar
2 votes
2 answers
83 views

I am working on some code which reads from an external REST API that uses UpperCamelCase (a.k.a. Pascal case) for the keys in its JSON responses: {"FirstKey": "a", "SecondKey&...
M. Justin's user avatar
  • 23.5k
Best practices
3 votes
4 replies
56 views

I wrote a function that takes an array of integers. If the function has at least two integers, it will flip the first two integers and return a new array. (This is a problem in Scala For The ...
Christopher Spears's user avatar
1 vote
1 answer
99 views

We are using Kafka to get avro data with the help of schema registry. After upgrading to Spark 3.3.2 from 2.4 the kafka consumer is failing with error - scala.MatchError: TimestampNTZType (of class ...
Khilesh Chauhan's user avatar
4 votes
0 answers
118 views

I saw one problem during project upgrade. Before upgrade setup: Java - 1.8 Scala - 2.12 sbt - 1.5.0 sbt-jacoco - 3.1.0 Overall test coverage in SonarQube: ~72% After upgrade: Java - 17 Scala - ...
ppllaxxa's user avatar
2 votes
1 answer
59 views

I am currently working on a Kryo SerDe for scalaPB (similar to twitter 'chill'). I struggle implementing the read interface override def read( kryo: com.esotericsoftware.kryo.Kryo, input: ...
Clemens Valiente's user avatar
1 vote
0 answers
62 views

My idea was to embed data in a class "statically" - i.e. completely independant of other components - and write it to file during compile. Something like this: def createForm()(using Quotes) ...
slaursen's user avatar
5 votes
0 answers
104 views

I am converting a Scala 2.13 project to Scala 3. Since I have made that change, the compiler has never finished compiling. There were normal syntax errors before the compiler hangs, which I have now ...
Callum's user avatar
  • 929
1 vote
1 answer
100 views

I am working out of Scala For The Impatient (3rd Edition) in my spare time. (I am not taking a class.). I am processing a list of java files with Scala. Specifically, I am looking for case labels, ...
Christopher Spears's user avatar
1 vote
2 answers
97 views

I am currently using the PPrint library to generate case classes to paste into my regression test Scala code, based on the values my existing code returns: case class MyCaseClass( byte: Option[...
M. Justin's user avatar
  • 23.5k
2 votes
1 answer
68 views

I am using Scala 3.3.7. When I do val str1 = raw"\\\" // compile error: unclosed string literal It is considering the \" as a single character. But when I do val str1 = raw"\\\\&...
Mradul Singhal's user avatar
Tooling
0 votes
1 replies
50 views

Hello I'm trying to create a integrated database test using testcontainer, my testcotainer is running with liquibase, my problem is about create quill connection, follow my code: container config: ...
Jose Luiz Junior's user avatar
1 vote
1 answer
85 views

I have a bigquery table with array column named as "column_list " ALTER TABLE `test-project.TEST_DATASET.TEST_TABLE` ADD COLUMN column_list ARRAY<STRING>; update `test-project....
Vikrant Singh Rana's user avatar
0 votes
1 answer
95 views

I am attempting to programmatically remove specific columns/fields from a dataframe (anything that starts with _), whether the field is in the root or in a struct, using the dropFields method. For ...
Andrew's user avatar
  • 8,903

15 30 50 per page
1
2 3 4 5
7522