Skip to content

Commit 2bd617b

Browse files
authored
Merge pull request #116 from dataiku/feature/fuzzy-join-api
add fuzzy join recipe creator
2 parents 1041074 + 3e0d48f commit 2bd617b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dataikuapi/dss/recipe.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,12 @@ class JoinRecipeCreator(VirtualInputsSingleOutputRecipeCreator):
10231023
def __init__(self, name, project):
10241024
VirtualInputsSingleOutputRecipeCreator.__init__(self, 'join', name, project)
10251025

1026+
class FuzzyJoinRecipeCreator(VirtualInputsSingleOutputRecipeCreator):
1027+
"""
1028+
Create a FuzzyJoin recipe
1029+
"""
1030+
def __init__(self, name, project):
1031+
VirtualInputsSingleOutputRecipeCreator.__init__(self, 'fuzzyjoin', name, project)
10261032

10271033
class StackRecipeSettings(DSSRecipeSettings):
10281034
"""

dataikuapi/dss/tools/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __exit__(self, b, c, d):
1414

1515

1616
def slugify(name):
17-
return re.sub("r[^A-Za-z0-9_]", "_", name)
17+
return re.sub(r"[^A-Za-z0-9_]", "_", name)
1818

1919
class FlowCodeGenerator(object):
2020
def __init__(self):

0 commit comments

Comments
 (0)