<reponame>beobest2/delta
from laplace_spark.modules.provider import Provider  # type: ignore
from laplace_spark.transformation_factory.base import TransformationFactory


class TransformationFactoryTmpToSrc(TransformationFactory):
    def provider(self, provider: Provider) -> "TransformationFactoryTmpToSrc":
        if provider is Provider.SMARTSTORE:
            from laplace_spark.transformation_factory.smartstore_tmp_to_src import (
                TransformationFactorySmartstoreTmpToSrc,
            )

            return TransformationFactorySmartstoreTmpToSrc()
        else:
            return self

from laplace_spark.modules.provider import Provider  # type: ignore
from laplace_spark.transformation_factory.base import TransformationFactory


class TransformationFactoryTmpToSrc(TransformationFactory):
    def provider(self, provider: Provider) -> "TransformationFactoryTmpToSrc":
        if provider is Provider.SMARTSTORE:
            from laplace_spark.transformation_factory.smartstore_tmp_to_src import (
                TransformationFactorySmartstoreTmpToSrc,
            )

            return TransformationFactorySmartstoreTmpToSrc()
        else:
            return self
# type: ignore