MCPcopy
hub / github.com/open-metadata/OpenMetadata / fn

Method fn

ingestion/src/metadata/profiler/metrics/static/max.py:99–107  ·  view source on GitHub ↗

sqlalchemy function

(self)

Source from the content-addressed store, hash-verified

97
98 @_label
99 def fn(self):
100 """sqlalchemy function"""
101 if is_concatenable(self.col.type):
102 return MaxFn(
103 LenFn(column(self.col.name, self.col.type)), type_=self.col.type
104 )
105 if (not is_quantifiable(self.col.type)) and (not is_date_time(self.col.type)):
106 return None
107 return MaxFn(column(self.col.name, self.col.type), type_=self.col.type)
108
109 def df_fn(self, dfs: Optional["PandasRunner"] = None):
110 """pandas function"""

Callers 15

assume_positiveMethod · 0.45
get_composed_metricsMethod · 0.45
get_hybrid_metricsMethod · 0.45
get_composed_metricsMethod · 0.45
computeMethod · 0.45

Calls 6

is_concatenableFunction · 0.90
LenFnClass · 0.90
is_quantifiableFunction · 0.90
is_date_timeFunction · 0.90
MaxFnClass · 0.85
columnFunction · 0.85

Tested by 13

FormWrapperFunction · 0.36
createRectFunction · 0.36
createChainMethodsFunction · 0.36
createMockStoreDataFunction · 0.36
getPropsFunction · 0.36
renderDropdownFunction · 0.36
renderComponentFunction · 0.36
makeBlobLikeFunction · 0.36
buildMockGraphFunction · 0.36
buildCtxFunction · 0.36
createMockCanvasFunction · 0.36
createReadyFeedWidgetFunction · 0.36