Github user lion-x commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/219#discussion_r85464806 --- Diff: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala --- @@ -1244,6 +1260,25 @@ case class LoadTableUsingKettle( Seq.empty } + private def validateDateFormat(dateFormat: String, dateDimensionsName: ArrayBuffer[String]): + Unit = { + if (dateFormat == "") { + throw new MalformedCarbonCommandException("Error: Option DateFormat is set an empty string.") + } else { + var dateFormats: Array[String] = dateFormat.split(",") + for (singleDateFormat <- dateFormats) { + var dateFormatSplits: Array[String] = singleDateFormat.split(":", 2) + if (!dateDimensionsName.contains(dateFormatSplits(0))) { --- End diff -- ok
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---