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
The SQLUpload task takes a parameter io_handler that can be used to run custom code and return a dataframe in the event you need custom processing.
Currently the run method of SQLUpload checks for io_handler but doesn't do anything with it.
The code should probably look like this:
if self.io_handler is None:
extension = Path(path).suffix
read_fn = mapping.get(extension)
if not read_fn:
raise ValueError(
'Could not infer reading function for '
'file with extension: {}'.format(extension),
'pass the function directly in the '
'io_handler argument')
else:
read_fn = self.io_handler
The text was updated successfully, but these errors were encountered:
The
SQLUpload
task takes a parameterio_handler
that can be used to run custom code and return a dataframe in the event you need custom processing.Currently the
run
method of SQLUpload checks forio_handler
but doesn't do anything with it.The code should probably look like this:
The text was updated successfully, but these errors were encountered: