Skip to content

Commit

Permalink
A
Browse files Browse the repository at this point in the history
setup architecture design Co-authored-by: Leon Moll<[email protected]>

Signed-off-by: Christian Munz <[email protected]>
  • Loading branch information
chris-1187 committed Oct 30, 2024
1 parent a84276e commit a162200
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 5 deletions.
14 changes: 14 additions & 0 deletions src/sdk/python/rtdip_sdk/pipelines/data_wranglers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 RTDIP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .spark.data_quality.duplicate_detection import *
22 changes: 22 additions & 0 deletions src/sdk/python/rtdip_sdk/pipelines/data_wranglers/interfaces.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 RTDIP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from abc import abstractmethod
from ..interfaces import PipelineComponentBaseInterface


class WranglerBaseInterface(PipelineComponentBaseInterface):
@abstractmethod
def filter(self):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2022 RTDIP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2022 RTDIP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from pyspark.sql.functions import desc
from pyspark.sql import DataFrame as PySparkDataFrame

from ...interfaces import MonitoringBaseInterface
from ...._pipeline_utils.models import Libraries, SystemType
from rtdip_sdk.pipelines.monitoring.interfaces import MonitoringBaseInterface
from rtdip_sdk.pipelines._pipeline_utils.models import Libraries, SystemType


class DuplicateDetection(MonitoringBaseInterface):
Expand Down
1 change: 0 additions & 1 deletion src/sdk/python/rtdip_sdk/pipelines/monitoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from .spark.data_quality.great_expectations_data_quality import *
from .spark.data_quality.duplicate_detection import *
4 changes: 3 additions & 1 deletion src/sdk/python/rtdip_sdk/pipelines/monitoring/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@


class MonitoringBaseInterface(PipelineComponentBaseInterface):
pass
@abstractmethod
def check(self):
pass
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from pyspark.sql import SparkSession
from pyspark.sql.dataframe import DataFrame

from src.sdk.python.rtdip_sdk.pipelines.monitoring.spark.data_quality.duplicate_detection import DuplicateDetection
from rtdip_sdk.pipelines.data_wranglers.spark.data_quality.duplicate_detection import DuplicateDetection


@pytest.fixture(scope="session")
Expand Down

0 comments on commit a162200

Please sign in to comment.