Introduction This article will cover how to query Postgresql from Spark, using Scala. To know more about Scala, check out any of the previous Scala articles. Spark PostgreSQL Dependencies Below, find dependencies needed to add to the build.sbt file. libraryDependencies += “org.postgresql” % “postgresql” % “42.2.5”libraryDependencies += “org.apache.spark” %% “spark-mllib” % sparkVersion % Provided To … Read morePostgresql from Spark, how to query?
SBT plugin – Introduction To create a SBT plugin, I am using SBT 1.2.6 and Scala 2.12.x. My consumer project is using SBT 1.2.6 and Scala 2.11.12. When you build a plugin, the requirements are: SBT version of the plugin needs to be the same as the SBT version of your project. SBT version of … Read moreSBT Plugin – How to make it, debug it, improve it?
Introduction This article is a simple explanation on how to find the chromatic polynomial as well as calculating the number of color: f() This equation is what we are trying to solve here. G is the Graph and is the number of color available. If you remember how to calculate derivation for function, this is the same … Read more[Graph Theory] Graph Coloring and Chromatic Polynomial