Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created October 28, 2018 08:58
Show Gist options
  • Select an option

  • Save ashkrit/b26ccee85f6424e0c75d508ae255f091 to your computer and use it in GitHub Desktop.

Select an option

Save ashkrit/b26ccee85f6424e0c75d508ae255f091 to your computer and use it in GitHub Desktop.
val issueDate = LocalDate.parse(row(aggFieldsOffset.get("issue date").get), ISSUE_DATE_FORMAT)
val issueDateValues = mutable.Set[Int]()
issueDateValues.add(issueDate.toEpochDay.toInt)
result = (fieldOffset.map(fieldInfo => row(fieldInfo._2)).mkString(","), (1, issueDateValues))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment