MCPcopy
hub / github.com/pathwaycom/pathway / create_column_definition

Function create_column_definition

python/pathway/internals/schema.py:901–906  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

899 return dt.wrap(dtype)
900
901 def create_column_definition(entry):
902 if not isinstance(entry, dict):
903 entry = {"dtype": entry}
904 entry["dtype"] = get_dtype(entry.get("dtype", Any))
905
906 return column_definition(**entry)
907
908 column_definitions = {
909 column_name: create_column_definition(value)

Callers 1

schema_from_dictFunction · 0.85

Calls 3

get_dtypeFunction · 0.85
column_definitionFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected