chitralverma commented on a change in pull request #558: [WIP] Enum based 
configs
URL: https://github.com/apache/griffin/pull/558#discussion_r355860107
 
 

 ##########
 File path: measure/src/main/scala/org/apache/griffin/measure/Application.scala
 ##########
 @@ -63,10 +63,10 @@ object Application extends Loggable {
     val allParam: GriffinConfig = GriffinConfig(envParam, dqParam)
 
     // choose process
-    val procType = ProcessType(allParam.getDqConfig.getProcType)
+    val procType = 
ProcessType.withNameWithDefault(allParam.getDqConfig.getProcType)
     val dqApp: DQApp = procType match {
-      case BatchProcessType => BatchDQApp(allParam)
-      case StreamingProcessType => StreamingDQApp(allParam)
+      case ProcessType.BatchProcessType => BatchDQApp(allParam)
+      case ProcessType.StreamingProcessType => StreamingDQApp(allParam)
 
 Review comment:
   example: wildcard import can eliminate this change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to