tusharpatil20 commented on a change in pull request #558: Enum based configs
URL: https://github.com/apache/griffin/pull/558#discussion_r356399521
##########
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)
Review comment:
I made the changes, please review it.
----------------------------------------------------------------
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