java.lang.RuntimeException: Don't know how to save StructField(max_request_time,DecimalType(30,0),true) to JDBC

Stack Overflow | raekwon.ha | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    WSO2 DAS does not suport Postgres?

    Stack Overflow | 6 months ago | raekwon.ha
    java.lang.RuntimeException: Don't know how to save StructField(max_request_time,DecimalType(30,0),true) to JDBC

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Don't know how to save StructField(max_request_time,DecimalType(30,0),true) to JDBC

      at org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$$anonfun$schemaString$1$$anonfun$2.apply()
    2. org.apache.spark
      package$JDBCWriteDetails$$anonfun$schemaString$1$$anonfun$2.apply
      1. org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$$anonfun$schemaString$1$$anonfun$2.apply(carbon.scala:55)
      2. org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$$anonfun$schemaString$1$$anonfun$2.apply(carbon.scala:42)
      2 frames
    3. Scala
      Option.getOrElse
      1. scala.Option.getOrElse(Option.scala:120)
      1 frame
    4. org.apache.spark
      package$JDBCWriteDetails$$anonfun$schemaString$1.apply
      1. org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$$anonfun$schemaString$1.apply(carbon.scala:41)
      2. org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$$anonfun$schemaString$1.apply(carbon.scala:38)
      2 frames
    5. Scala
      ArrayOps$ofRef.foreach
      1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
      2 frames
    6. org.apache.spark
      JDBCRelation.insert
      1. org.apache.spark.sql.jdbc.carbon.package$JDBCWriteDetails$.schemaString(carbon.scala:38)
      2. org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:180)
      2 frames
    7. Spark Project SQL
      SparkPlan$$anonfun$execute$1.apply
      1. org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
      2. org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
      3. org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
      4. org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
      5. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
      6. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
      6 frames
    8. Spark
      RDDOperationScope$.withScope
      1. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
      1 frame
    9. Spark Project SQL
      SQLContext.sql
      1. org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
      2. org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
      3. org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
      4. org.apache.spark.sql.DataFrame.<init>(DataFrame.scala:144)
      5. org.apache.spark.sql.DataFrame.<init>(DataFrame.scala:128)
      6. org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
      7. org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
      7 frames
    10. org.wso2.carbon
      TaskQuartzJobAdapter.execute
      1. org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:731)
      2. org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:709)
      3. org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:201)
      4. org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:151)
      5. org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:59)
      6. org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
      6 frames
    11. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:213)
      1 frame
    12. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames