Skip to content

Commit

Permalink
added print statements in BaseDruidQueryProcessor model
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanthShiksha committed Aug 6, 2024
1 parent a6ea3cb commit df5020a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ trait BaseDruidQueryProcessor {
else {
DruidDataFetcher.getDruidData(JSONUtils.deserialize[DruidQueryModel](JSONUtils.serialize(queryConfig)))
}
print(s"data = $data")
println("Sample data from the RDD:")
data.take(5).foreach(println)
val count = data.count()
println(s"Number of records in the RDD: $count")
data.map { x =>
val dataMap = JSONUtils.deserialize[Map[String, AnyRef]](x)
val key = dataMap.filter(m => (queryDims.flatten ++ List("date")).contains(m._1)).values.map(f => f.toString).toList.sorted(Ordering.String.reverse).mkString(",")
Expand Down

0 comments on commit df5020a

Please sign in to comment.