diff --git a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/ParameterForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/ParameterForm.tsx index 852c12928ba..97728463f55 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/ParameterForm.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/ParameterForm.tsx @@ -37,10 +37,7 @@ import { ReactComponent as IconDelete } from '../../../../assets/svg/ic-delete.s import { WILD_CARD_CHAR } from '../../../../constants/char.constants'; import { PAGE_SIZE_LARGE } from '../../../../constants/constants'; import { SUPPORTED_PARTITION_TYPE_FOR_DATE_TIME } from '../../../../constants/profiler.constant'; -import { - SUPPORTED_SERVICES_FOR_TABLE_DIFF, - TABLE_DIFF, -} from '../../../../constants/TestSuite.constant'; +import { TABLE_DIFF } from '../../../../constants/TestSuite.constant'; import { CSMode } from '../../../../enums/codemirror.enum'; import { SearchIndex } from '../../../../enums/search.enum'; import { @@ -323,19 +320,6 @@ const ParameterForm: React.FC = ({ definition, table }) => { pageNumber: 1, pageSize: PAGE_SIZE_LARGE, searchIndex: SearchIndex.TABLE, - queryFilter: { - query: { - bool: { - must: [ - { - terms: { - serviceType: SUPPORTED_SERVICES_FOR_TABLE_DIFF, - }, - }, - ], - }, - }, - }, fetchSource: true, includeFields: ['name', 'fullyQualifiedName', 'displayName'], }); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseForm.tsx index c4f3add108e..2d17c377f7a 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseForm.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseForm.tsx @@ -30,10 +30,6 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import { PAGE_SIZE_LARGE } from '../../../../constants/constants'; import { ENTITY_NAME_REGEX } from '../../../../constants/regex.constants'; -import { - SUPPORTED_SERVICES_FOR_TABLE_DIFF, - TABLE_DIFF, -} from '../../../../constants/TestSuite.constant'; import { ProfilerDashboardType } from '../../../../enums/table.enum'; import { CreateTestCase } from '../../../../generated/api/tests/createTestCase'; import { TestCase } from '../../../../generated/tests/testCase'; @@ -124,17 +120,8 @@ const TestCaseForm: React.FC = ({ testPlatform: TestPlatform.OpenMetadata, supportedDataType: columnType, }); - const updatedData = data.filter((definition) => { - if (definition.fullyQualifiedName === TABLE_DIFF) { - return ( - table.serviceType && - SUPPORTED_SERVICES_FOR_TABLE_DIFF.includes(table.serviceType) - ); - } - return true; - }); - setTestDefinitions(updatedData); + setTestDefinitions(data); } catch (error) { showErrorToast(error as AxiosError); } diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/TestSuite.constant.ts b/openmetadata-ui/src/main/resources/ui/src/constants/TestSuite.constant.ts index a74e230361d..1ee7b7101c3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/constants/TestSuite.constant.ts +++ b/openmetadata-ui/src/main/resources/ui/src/constants/TestSuite.constant.ts @@ -13,7 +13,6 @@ import i18next from 'i18next'; import { StepperStepType } from 'Models'; -import { DatabaseServiceType } from '../generated/entity/data/database'; import { TestCaseResolutionStatusTypes } from '../generated/tests/testCaseResolutionStatus'; import { DataQualityPageTabs } from '../pages/DataQuality/DataQualityPage.interface'; @@ -83,16 +82,3 @@ export const TEST_CASE_STATUS: Record< export const TABLE_DIFF = 'tableDiff'; export const TABLE_DATA_TO_BE_FRESH = 'tableDataToBeFresh'; export const TABLE_FRESHNESS_KEY = 'freshness'; - -export const SUPPORTED_SERVICES_FOR_TABLE_DIFF = [ - DatabaseServiceType.Snowflake, - DatabaseServiceType.BigQuery, - DatabaseServiceType.Redshift, - DatabaseServiceType.Athena, - DatabaseServiceType.Postgres, - DatabaseServiceType.Mysql, - DatabaseServiceType.Mssql, - DatabaseServiceType.Oracle, - DatabaseServiceType.Trino, - DatabaseServiceType.SapHana, -];