@@ -85,15 +85,15 @@ def _get_data_chars_sql(self) -> CRefreshDataCharsSQL:
8585 "profiling_table_set" : self .parm_table_set ,
8686 "profiling_include_mask" : self .parm_table_include_mask ,
8787 "profiling_exclude_mask" : self .parm_table_exclude_mask ,
88- }
88+ }
8989 self ._data_chars_sql = CRefreshDataCharsSQL (params , self .run_date , "v_latest_profile_results" )
90-
90+
9191 return self ._data_chars_sql
92-
92+
9393 def _get_rollup_scores_sql (self ) -> CRollupScoresSQL :
9494 if not self ._rollup_scores_sql :
9595 self ._rollup_scores_sql = CRollupScoresSQL (self .profile_run_id , self .table_groups_id )
96-
96+
9797 return self ._rollup_scores_sql
9898
9999 def ReplaceParms (self , strInputString ):
@@ -106,7 +106,7 @@ def ReplaceParms(self, strInputString):
106106 strInputString = strInputString .replace ("{COL_NAME}" , self .col_name )
107107 strInputString = strInputString .replace ("{COL_NAME_SANITIZED}" , self .col_name .replace ("'" , "''" ))
108108 strInputString = strInputString .replace ("{COL_GEN_TYPE}" , self .col_gen_type )
109- strInputString = strInputString .replace ("{COL_TYPE}" , self .col_type )
109+ strInputString = strInputString .replace ("{COL_TYPE}" , self .col_type or "" )
110110 strInputString = strInputString .replace ("{COL_POS}" , str (self .col_ordinal_position ))
111111 strInputString = strInputString .replace ("{TOP_FREQ}" , self .col_top_freq_update )
112112 strInputString = strInputString .replace ("{PROFILE_RUN_ID}" , self .profile_run_id )
@@ -177,7 +177,7 @@ def GetAnomalyStatsRefreshQuery(self):
177177 def GetAnomalyScoringRollupRunQuery (self ):
178178 # Runs on DK Postgres Server
179179 return self ._get_rollup_scores_sql ().GetRollupScoresProfileRunQuery ()
180-
180+
181181 def GetAnomalyScoringRollupTableGroupQuery (self ):
182182 # Runs on DK Postgres Server
183183 return self ._get_rollup_scores_sql ().GetRollupScoresProfileTableGroupQuery ()
0 commit comments