You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The piece of code describes the problem
importpandasaspdfromfugue_sqlimportFugueSQLWorkflowclassTest(object):
# schema: *deft(self, df:pd.DataFrame) ->pd.DataFrame:
returndftest=Test()
withFugueSQLWorkflow() asdag:
dag.df([[0]],"a:int").transform(test.t).show() # this worksf=test.twithFugueSQLWorkflow() asdag:
dag(""" CREATE [[0]] SCHEMA a:int TRANSFORM USING f # this works PRINT """)
withFugueSQLWorkflow() asdag:
dag(""" CREATE [[0]] SCHEMA a:int TRANSFORM USING test.t # this complains test.t is not a valid transformer PRINT """)
Is your feature request related to a problem? Please describe.
The piece of code describes the problem
Describe the solution you'd like
TRANSFORM USING test.t
should work,test.t
should be recognizedThis is not a problem of fugue, but a problem of triad
https://github.com/fugue-project/triad/blob/84d1f01be413251a5a85ce89025c982e1306ed70/triad/utils/convert.py#L155
It needs improvement in triad to be able to recognize this expression.
On Fugue side, additional tests should be added to test class member as extension scenarios
Describe alternatives you've considered
The alternative is the second example this the code above
Additional context
NA
The text was updated successfully, but these errors were encountered: