Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
68 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 votes
0 answers
72 views

I have no idea how to implement MonadError for case class MyPair[+A, +B](a: A, b: B), since I don't understand how to deal with 2 types in Monad. I've been trying to write it for 2 weeks already, no ...
spydula's user avatar
1 vote
2 answers
81 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.3k
2 votes
1 answer
63 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
40 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
0 answers
72 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
93 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,893
1 vote
0 answers
93 views

Using Lucene, certain queries parse and execute in a completely unexpected way. Here's the code for testing it (written in Scala, but can be easily translated to Java too): import org.apache.lucene....
Markus Appel's user avatar
  • 3,268
0 votes
1 answer
76 views

I’m working on a data ingestion pipeline using Apache Spark (triggered via a Cloud Function on Dataproc). The input CSV contains column names that include special characters such as parentheses and a ...
Suhani Bhatia's user avatar
1 vote
0 answers
75 views

I wanted to use riscv-torture project to create tests in a server that has no access to the internet. I firstly run it in my ubuntu 22.04 then copy .sbt .ivy2 .cache/coursier .cache/JPN folders to the ...
Ömer GÜZEL's user avatar
2 votes
1 answer
120 views

I can get the formal type parameters (type variables) of any Java class/interface, including those defined in Scala, through java.lang.reflect API. In addition, Scala allows to define type parameters ...
Turin's user avatar
  • 2,311
-1 votes
2 answers
138 views

I have two possibilities to implement a simple list drop method. A: def drop[A](l: List[A], n: Int): List[A] = (n, l) match case (n, l) if n <= 0 => l case (_, Cons(_, t)) => drop(t, n - ...
Igor Flakiewicz's user avatar
1 vote
0 answers
86 views

mixed compilation project of Scala and Java, and now upgrade jdk8->jdk21, use Java15+ feature text block before: String sql = "update hinsight.homeco_user_task set \n" + "...
maple's user avatar
  • 47
0 votes
0 answers
82 views

I have a small specification that uses json matcher import org.specs2.matcher.JsonMatchers import org.specs2.mutable.Specification class Test extends Specification with JsonMatchers { "test&...
nigredo's user avatar
  • 41
1 vote
0 answers
47 views

I'm new to Scala and I'm having trouble wrapping my head around the following scenario - I want to have a centralized spot in build.sbt where we log the current profile and set certain values based on ...
Dzeri96's user avatar
  • 462

15 30 50 per page
1
2 3 4 5
7523