scala.MatchError: DECIMAL(16,8) (of class java.lang.String)

GitHub | trevorsibanda | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SQlite typepattern cant match sql DECIMAL with precision

    GitHub | 9 months ago | trevorsibanda
    scala.MatchError: DECIMAL(16,8) (of class java.lang.String)

    Root Cause Analysis

    1. scala.MatchError

      DECIMAL(16,8) (of class java.lang.String)

      at slick.jdbc.SQLiteProfile$ModelBuilder$$anon$1.<init>()
    2. slick.jdbc
      JdbcModelBuilder$TableBuilder$$anonfun$columns$1.apply
      1. slick.jdbc.SQLiteProfile$ModelBuilder$$anon$1.<init>(SQLiteProfile.scala:101)
      2. slick.jdbc.SQLiteProfile$ModelBuilder.createColumnBuilder(SQLiteProfile.scala:98)
      3. slick.jdbc.JdbcModelBuilder$TableBuilder$$anonfun$columns$1.apply(JdbcModelBuilder.scala:163)
      4. slick.jdbc.JdbcModelBuilder$TableBuilder$$anonfun$columns$1.apply(JdbcModelBuilder.scala:163)
      4 frames
    3. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:742)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
      5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      6. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      7. scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
      8. scala.collection.AbstractTraversable.map(Traversable.scala:104)
      8 frames
    4. slick.jdbc
      JdbcModelBuilder$$anonfun$buildModel$3$$anonfun$apply$17.apply
      1. slick.jdbc.JdbcModelBuilder$TableBuilder.columns$lzycompute(JdbcModelBuilder.scala:163)
      2. slick.jdbc.JdbcModelBuilder$TableBuilder.columns(JdbcModelBuilder.scala:163)
      3. slick.jdbc.JdbcModelBuilder$TableBuilder.buildModel(JdbcModelBuilder.scala:161)
      4. slick.jdbc.JdbcModelBuilder$$anonfun$buildModel$3$$anonfun$apply$17.apply(JdbcModelBuilder.scala:96)
      5. slick.jdbc.JdbcModelBuilder$$anonfun$buildModel$3$$anonfun$apply$17.apply(JdbcModelBuilder.scala:96)
      5 frames
    5. Scala
      List.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.immutable.List.foreach(List.scala:381)
      4. scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
      5. scala.collection.immutable.List.map(List.scala:285)
      5 frames
    6. slick.jdbc
      JdbcModelBuilder$$anonfun$buildModel$3.apply
      1. slick.jdbc.JdbcModelBuilder$$anonfun$buildModel$3.apply(JdbcModelBuilder.scala:96)
      2. slick.jdbc.JdbcModelBuilder$$anonfun$buildModel$3.apply(JdbcModelBuilder.scala:93)
      2 frames
    7. slick.dbio
      DBIOAction$$anonfun$map$1.apply
      1. slick.dbio.DBIOAction$$anonfun$map$1.apply(DBIOAction.scala:44)
      2. slick.dbio.DBIOAction$$anonfun$map$1.apply(DBIOAction.scala:44)
      2 frames
    8. slick.basic
      BasicBackend$DatabaseDef$$anonfun$runInContext$1.apply
      1. slick.basic.BasicBackend$DatabaseDef$$anonfun$runInContext$1.apply(BasicBackend.scala:149)
      2. slick.basic.BasicBackend$DatabaseDef$$anonfun$runInContext$1.apply(BasicBackend.scala:149)
      2 frames
    9. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)
      2. scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)
      3. scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
      4. scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
      5. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      6. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      7. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      8. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      8 frames