mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 18:59:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			322 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			322 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from datahub.sdk import DataHubClient, DatasetUrn, GlossaryTermUrn
 | |
| 
 | |
| client = DataHubClient.from_env()
 | |
| 
 | |
| dataset = client.entities.get(
 | |
|     DatasetUrn(platform="hive", name="realestate_db.sales", env="PROD")
 | |
| )
 | |
| 
 | |
| dataset["address.zipcode"].add_term(GlossaryTermUrn("Classification.Location"))
 | |
| 
 | |
| client.entities.update(dataset)
 | 
