-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugUnwanted / harmful behaviorUnwanted / harmful behavior
Description
if we run the following example in Jupyter notebook or Ipython in general, I am getting OSError: could not extract source code
from exasol_udf_mock_python.udf_mock_executor import UDFMockExecutor
from exasol_udf_mock_python.mock_meta_data import MockMetaData
from exasol_udf_mock_python.column import Column
def udf_wrapper():
def run(ctx):
return ctx.t1+1, ctx.t2+1.1, ctx.t3+"1"
executor = UDFMockExecutor()
meta = MockMetaData(
script_code_wrapper_function=udf_wrapper,
input_type="SCALAR",
input_columns=[Column("t1", int, "INTEGER"),
Column("t2", float, "FLOAT"),
Column("t3", str, "VARCHAR(20000)")],
output_type="RETURNS",
output_columns=[Column("t1", int, "INTEGER"),
Column("t2", float, "FLOAT"),
Column("t3", str, "VARCHAR(20000)")]
)
exa = MockExaEnvironment(meta)
result = executor.run([Group([(1,1.0,"1"), (5,5.0,"5"), (6,6.0,"6")])], exa)
result
Metadata
Metadata
Assignees
Labels
bugUnwanted / harmful behaviorUnwanted / harmful behavior