mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			301 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			301 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from datahub.sdk import CorpUserUrn, DataHubClient, DatasetUrn
 | |
| 
 | |
| client = DataHubClient.from_env()
 | |
| 
 | |
| dataset = client.entities.get(DatasetUrn(platform="hive", name="realestate_db.sales"))
 | |
| 
 | |
| # Add owner with the TECHNICAL_OWNER type
 | |
| dataset.add_owner(CorpUserUrn("jdoe"))
 | |
| 
 | |
| client.entities.update(dataset)
 | 
