THe intention in the code below is to get the name of the student whose id is equal..
Tag : scala
I am doing in scala eclipse, I dont have any issue until ArrayBuffer..
How do I return a copy of a generic case class using the case class .copy
m..
How to access the variable “test” outside of the scala match expression? even i declare as var, it does not return the updated value for test var..
This code fails to compile with scala..
I want to read json a column which has dot(.) in it. Below code works fine it there is n..
I am keeping one string value in a class file. I want to get this string in another scala main function. How do i get the string abc in main scala..
I have a dataframe. I want to raise an exception if any of the column is having null. I can do it by hard coding column names and putting or conditions to check. How can i make it dynamic and performance effe..
Iteration : 10
Parent row——————–:154
Parent Row Creation:null
Current row:———-10
error processing the load. Error: null
error processing data load and performing rollback
Closing JDBC connection…
error processing the load. Error: null
error processing data load and performing rollback
Closing JDBC connection…
Error occured during extract process.1 Error:
java.lang.NullPointerException: null
at com.bcbsm.ie.etl.services.COMMRBCEExtDynamic.$anonfun$doETL$3(COMMRBCEExtDynamic.scala:182) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a.jar:?]
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) ~[—-workspace_spark_3_1–maven-trees–hive-2.3__hadoop-2.7–org.scala-lang–scala-library_2.12–org.scala-lang__scala-library__2.12.10.jar:?]
at com.bcbsm.ie.etl.services.COMMRBCEExtDynamic.$anonfun$doETL$2(COMMRBCEExtDynamic.scala:179) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a.jar:?]
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) ~[—-workspace_spark_3_1–maven-trees–hive-2.3__hadoop-2.7–org.scala-lang–scala-library_2.12–org.scala-lang__scala-library__2.12.10.jar:?]
at com.bcbsm.ie.etl.services.COMMRBCEExtDynamic.$anonfun$doETL$1(COMMRBCEExtDynamic.scala:177) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a.jar:?]
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) ~[—-workspace_spark_3_1–maven-trees–hive-2.3__hadoop-2.7–org.scala-lang–scala-library_2.12–org.scala-lang__scala-library__2.12.10.jar:?]
at com.bcbsm.ie.etl.services.COMMRBCEExtDynamic.doETL(COMMRBCEExtDynamic.scala:172) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a.jar:?]
at com.bcbsm.ie.etl.services.ETLService.doETL(ETLService.scala:191) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a.jar:?]
at com.bcbsm.ie.etl.main.RedshiftToExcelExt$.main(RedshiftToExcelExt.scala:69) ~[addedFile1823515003766928211FAM_Report_1_0_0-2844a…
I have a dataframe which is having a array column. It contains list of values along with nulls. I want to replace the nulls with some other ..