mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 18:48:35 +00:00 
			
		
		
		
	 3dc642989c
			
		
	
	
		3dc642989c
		
			
		
	
	
	
	
		
			
			* feat: add test case resolution task workflow * chore: add migration for test case resolution feature * fix: removed required field for object compatibiity in older migrations * fix: minor testCaseResolution status logic * chore: revert migration for test case incident * chore: update migration file * style: renamed variables * feat: added logic to compute failed/passed rows * feat: add support for row level computation in schema * chore: add test definition migration * feat: add logic to explicitly compute row level failure * chore: clean up code * style: fix java * style: fix pyton format * fix: unhidde API for incident manager * style: fix java styling
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- Rename customMetricsProfile to customMetrics
 | |
| UPDATE profiler_data_time_series
 | |
| SET json = REPLACE(json, '"customMetricsProfile"', '"customMetrics"');
 | |
| 
 | |
| -- Delete customMetricsProfile from entity_extension
 | |
| -- This was not supported on the processing side before 1.3.
 | |
| DELETE FROM entity_extension ee   
 | |
| where extension  like '%customMetrics';
 | |
| 
 | |
| -- BEGIN: Incident Manager Migration
 | |
| -- STEP 1: Update test case testCaseResult.testCaseFailureStatus field
 | |
| UPDATE test_case
 | |
| SET json = JSON_REMOVE(json, '$.testCaseResult.testCaseFailureStatus')
 | |
| WHERE json -> '$.testCaseResult.testCaseFailureStatus' IS NOT NULL;
 | |
| 
 | |
| 
 | |
| -- STEP 2: remove all `testCaseFailureStatus` field in test results
 | |
| UPDATE data_quality_data_time_series d
 | |
| SET json = JSON_REMOVE(json, '$.testCaseFailureStatus');
 | |
| -- END: Incident Manager Migration
 | |
| 
 | |
| -- Test Case passed/failed row level migration
 | |
| UPDATE test_definition
 | |
| SET json = JSON_SET(json, '$.supportsRowLevelPassedFailed', true)
 | |
| WHERE name IN (
 | |
| 	'columnValuesToBeUnique',
 | |
| 	'columnValueLengthsToBeBetween',
 | |
| 	'columnValuesToBeBetween',
 | |
| 	'columnValuesToBeInSet',
 | |
| 	'columnValuesToBeNotInSet',
 | |
| 	'columnValuesToBeNotNull',
 | |
| 	'columnValuesToMatchRegex',
 | |
| 	'columnValuesToNotMatchRegex'
 | |
| ); |