bug fix: schema

dev
Steve Nyemba 2 years ago
parent 44d3f4989a
commit 3aee3e2cae

@ -46,15 +46,15 @@ class Input :
:param store data-store parameters/configuration
:param sql sql query that pulls a representative sample of the data
"""
self._schema = _args['schema'] if 'schema' in _args else {}
#
# schema data should be in a hash map for these purposes
#
if self._schema :
r = {}
for _item in self._schema :
r[_item['name']] = r[_item['type']]
self._schema = r
# self._schema = _args['schema'] if 'schema' in _args else {}
# #
# # schema data should be in a hash map for these purposes
# #
# if self._schema :
# r = {}
# for _item in self._schema :
# r[_item['name']] = r[_item['type']]
# self._schema = r
self.df = _args['data']
if 'sql' not in _args :

Loading…
Cancel
Save