|
@@ -32,7 +32,7 @@ object args_company_job {
|
|
, args_company_job("company_court_open_announcement", Seq("case_no", "start_date")
|
|
, args_company_job("company_court_open_announcement", Seq("case_no", "start_date")
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',case_no,split_date(cast(start_date as String)) )))"
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',case_no,split_date(cast(start_date as String)) )))"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
- , where = "case_no_trim(case_no) is not null and is_json_str(defendant_info) and is_json_str(plaintiff_info) and is_json_str(litigant_info)"
|
|
|
|
|
|
+ , where = "is_json_str(defendant_info) and is_json_str(plaintiff_info) and is_json_str(litigant_info)"
|
|
, explode_args = Seq(
|
|
, explode_args = Seq(
|
|
explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
, explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
, explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
@@ -99,8 +99,8 @@ object args_company_job {
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
- , args_company_job("company_court_announcement", Seq("case_no", "announcement_type", "publish_date", "court_name")
|
|
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',case_no,announcement_type,split_date(cast(publish_date as String)),court_name )))"
|
|
|
|
|
|
+ , args_company_job("company_court_announcement", Seq("case_no", "announcement_type", "publish_date", "court_name", "bltn_no")
|
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',case_no,announcement_type,split_date(cast(publish_date as String)),court_name,bltn_no )))"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
, where = "is_json_str(plaintiff_info) and is_json_str(litigant_info)"
|
|
, where = "is_json_str(plaintiff_info) and is_json_str(litigant_info)"
|
|
, explode_args = Seq(
|
|
, explode_args = Seq(
|
|
@@ -177,6 +177,8 @@ object args_company_job {
|
|
|
|
|
|
, args_company_job("bankruptcy_open_case", Seq("applicant", "respondent", "public_date")
|
|
, args_company_job("bankruptcy_open_case", Seq("applicant", "respondent", "public_date")
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',applicant,respondent,split_date(cast(public_date as String)))))"
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',applicant,respondent,split_date(cast(public_date as String)))))"
|
|
|
|
+ , id_user_defined_rowkey = true
|
|
|
|
+
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
, where = "is_json_str(applicant_info) and is_json_str(respondent_info) "
|
|
, where = "is_json_str(applicant_info) and is_json_str(respondent_info) "
|
|
, explode_args = Seq(
|
|
, explode_args = Seq(
|
|
@@ -187,12 +189,14 @@ object args_company_job {
|
|
)
|
|
)
|
|
|
|
|
|
, args_company_job("bankruptcy_open_announcement", Seq("title", "case_no")
|
|
, args_company_job("bankruptcy_open_announcement", Seq("title", "case_no")
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',title,case_no)))"
|
|
|
|
|
|
+ , rowkey_udf = "concat_ws('_', main_id, md5(cleanup(concat_ws('',title,case_no))) )"
|
|
|
|
+
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
, args_company_job("bankruptcy_judgment_document", Seq("title", "case_no")
|
|
, args_company_job("bankruptcy_judgment_document", Seq("title", "case_no")
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',title,case_no)))"
|
|
|
|
|
|
+ , rowkey_udf = "concat_ws('_', main_id, md5(cleanup(concat_ws('',title,case_no))) )"
|
|
|
|
+
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
@@ -206,30 +210,41 @@ object args_company_job {
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
|
|
- , args_company_job("company_punishment_info", Seq("punish_number")
|
|
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',punish_number)))"
|
|
|
|
|
|
+ , args_company_job("company_punishment_info", Seq("company_name", "punish_number")
|
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',company_name, punish_number)))"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
- , args_company_job("company_punishment_info_creditchina", Seq("punish_number")
|
|
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',punish_number)))"
|
|
|
|
|
|
+ , args_company_job("company_punishment_info_creditchina", Seq("company_name", "punish_number")
|
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',company_name, punish_number)))"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
, args_company_job("company_brief_cancel_announcement", Seq("company_id")
|
|
, args_company_job("company_brief_cancel_announcement", Seq("company_id")
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',company_id)))"
|
|
, rowkey_udf = "md5(cleanup(concat_ws('',company_id)))"
|
|
|
|
+ , id_user_defined_rowkey = true
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
, args_company_job("company_brief_cancel_announcement_objection", Seq("main_id", "objection_date", "objection_content")
|
|
, args_company_job("company_brief_cancel_announcement_objection", Seq("main_id", "objection_date", "objection_content")
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',main_id, split_date(cast(objection_date as String)), objection_content)))"
|
|
|
|
|
|
+ , rowkey_udf = "concat_ws('_', main_id, md5(cleanup(concat_ws('',main_id, split_date(cast(objection_date as String)), objection_content))) )"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
|
|
, args_company_job("company_brief_cancel_announcement_result", Seq("main_id", "announcement_apply_date", "brief_cancel_result")
|
|
, args_company_job("company_brief_cancel_announcement_result", Seq("main_id", "announcement_apply_date", "brief_cancel_result")
|
|
- , rowkey_udf = "md5(cleanup(concat_ws('',main_id, split_date(cast(announcement_apply_date as String)), brief_cancel_result)))"
|
|
|
|
|
|
+ , rowkey_udf = "concat_ws('_', main_id, md5(cleanup(concat_ws('',main_id, split_date(cast(announcement_apply_date as String)), brief_cancel_result))) )"
|
|
, is_super_filter = false
|
|
, is_super_filter = false
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+ , args_company_job("company_lawsuit", Seq("case_no", "title")
|
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('', case_no, title)))"
|
|
|
|
+ , is_super_filter = false
|
|
|
|
+ , where = "is_json_str(litigant_info) and is_json_str(defendant_info) and is_json_str(plaintiff_info)"
|
|
|
|
+ , explode_args = Seq(
|
|
|
|
+ explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
|
|
+ , explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
|
|
+ )
|
|
|
|
+ )
|
|
)
|
|
)
|
|
|
|
|
|
def get_args_company_job(tn: String): args_company_job = {
|
|
def get_args_company_job(tn: String): args_company_job = {
|