@@ -157,7 +157,7 @@ def pull_latest_from_table_or_query(
157157 created_timestamp_column : Optional [str ],
158158 start_date : datetime ,
159159 end_date : datetime ,
160- user : str = "user" ,
160+ user : Optional [ str ] = None ,
161161 auth : Optional [Authentication ] = None ,
162162 http_scheme : Optional [str ] = None ,
163163 ) -> TrinoRetrievalJob :
@@ -176,7 +176,6 @@ def pull_latest_from_table_or_query(
176176 timestamps .append (created_timestamp_column )
177177 timestamp_desc_string = " DESC, " .join (timestamps ) + " DESC"
178178 field_string = ", " .join (join_key_columns + feature_name_columns + timestamps )
179-
180179 client = _get_trino_client (
181180 config = config , user = user , auth = auth , http_scheme = http_scheme
182181 )
@@ -212,7 +211,7 @@ def get_historical_features(
212211 registry : Registry ,
213212 project : str ,
214213 full_feature_names : bool = False ,
215- user : str = "user" ,
214+ user : Optional [ str ] = None ,
216215 auth : Optional [Authentication ] = None ,
217216 http_scheme : Optional [str ] = None ,
218217 ) -> TrinoRetrievalJob :
@@ -303,7 +302,7 @@ def pull_all_from_table_or_query(
303302 timestamp_field : str ,
304303 start_date : datetime ,
305304 end_date : datetime ,
306- user : str = "user" ,
305+ user : Optional [ str ] = None ,
307306 auth : Optional [Authentication ] = None ,
308307 http_scheme : Optional [str ] = None ,
309308 ) -> RetrievalJob :
@@ -375,7 +374,10 @@ def _upload_entity_df_and_get_entity_schema(
375374
376375
377376def _get_trino_client (
378- config : RepoConfig , user : str , auth : Optional [Any ], http_scheme : Optional [str ]
377+ config : RepoConfig ,
378+ user : Optional [str ],
379+ auth : Optional [Any ],
380+ http_scheme : Optional [str ],
379381) -> Trino :
380382 client = Trino (
381383 user = user ,
0 commit comments