|  | @@ -22,7 +22,7 @@ class DatasetService:
 | 
											
												
													
														|  |      def get_user_profile_data(self, third_party_user_id: str, date_version: str):
 |  |      def get_user_profile_data(self, third_party_user_id: str, date_version: str):
 | 
											
												
													
														|  |          sql = f"""
 |  |          sql = f"""
 | 
											
												
													
														|  |             SELECT * FROM third_party_user_date_version
 |  |             SELECT * FROM third_party_user_date_version
 | 
											
												
													
														|  | -           WHERE dt between '20250612' and {date_version}  -- 添加分区条件
 |  | 
 | 
											
												
													
														|  | 
 |  | +           WHERE dt >= '20250612' and dt < {date_version}  -- 添加分区条件
 | 
											
												
													
														|  |             and third_party_user_id = {third_party_user_id}
 |  |             and third_party_user_id = {third_party_user_id}
 | 
											
												
													
														|  |             and profile_data_v1 is not null 
 |  |             and profile_data_v1 is not null 
 | 
											
												
													
														|  |             order by dt desc 
 |  |             order by dt desc 
 |