def validate(self, context, runtime, config): job_data = None problems = [] if config.get('cfgpath', None): job_data = config.get('cfgpath') else: problems.append('Missing cfgpath data') if len(problems) == 0: return job_data else: return build_problems(problems)
def validate(self, context, runtime, config): problems = [] job_data = None if not isinstance(context, SQLContext): problems.append('Expected a SQL context') if config.get('input.data', None): job_data = config.get('input.data') else: problems.append('config input.data not found') if len(problems) == 0: return job_data else: return build_problems(problems)
def validate(self, context, runtime, config): problems = [] job_data = None if not isinstance(context, SQLContext): problems.append('Expected a SQL context') if 'people_table' in context.tableNames(): job_data = "" else: problems.append("expect 'people_table' table to " "have been created by earlier job") if len(problems) == 0: return job_data else: return build_problems(problems)
def validate(self, context, runtime, config): if config.get('input.strings', None): return config.get('input.strings') else: return build_problems(['config input.strings not found'])