Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-2.0.0-beta-merge' into featu…
Browse files Browse the repository at this point in the history
…re-2.0.0-beta-flow_upload
  • Loading branch information
zhihuiwan committed Jun 20, 2023
2 parents 41057bc + faf0d20 commit d5aa178
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/fate/arch/computing/standalone/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def save(self, uri: URI, schema, options: dict = None):
if options is None:
options = {}

if uri.schema != "eggroll":
if uri.schema != "standalone":
raise ValueError(f"uri scheme `{uri.schema}` not supported with standalone backend")
try:
*database, namespace, name = uri.path_splits()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import typing

from fate.components.core.essential import DataframeArtifactType
Expand All @@ -8,9 +9,12 @@
from fate.arch import URI, Context
from fate.arch.dataframe import DataFrame

logger = logging.getLogger(__name__)


class DataframeWriter(_ArtifactTypeWriter["_DataframeArtifactType"]):
def write(self, ctx, df: "DataFrame", name=None, namespace=None):
logger.debug(f"start writing dataframe to artifact: {self.artifact}, name={name}, namespace={namespace}")
from fate.arch import dataframe

if name is not None:
Expand All @@ -26,6 +30,7 @@ def write(self, ctx, df: "DataFrame", name=None, namespace=None):
schema=self.artifact.metadata.metadata["schema"],
options=self.artifact.metadata.metadata.get("options", None),
)
logger.debug(f"write dataframe to artifact: {self.artifact}")


class DataframeArtifactDescribe(ArtifactDescribe):
Expand Down

0 comments on commit d5aa178

Please sign in to comment.