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
in current default we added support for some loading of modules (not all monetdb modules are part of the monetdbe library). To load those used .enable_load_extension() and .load_extension('extension_name'). The current limitation is that lib_extension_name.so, should be in your local directory (cwd). Also the sql scripts aren't directly loaded, ie. you should a those by hand. Above example works with:
import monetdbe
db = monetdbe.connect()
db.enable_load_extension()
db.load_extension('generator')
db.execute("""
create function sys.generate_series(first hugeint, "limit" hugeint)
returns table (value hugeint)
external name generator.series;
create function sys.generate_series(first hugeint, "limit" hugeint, stepsize hugeint)
returns table (value hugeint)
external name generator.series;
""")
print(db.execute('select sum(value) from generate_series(1,100000001)').fetchdf());
Is your feature request related to a problem? Please describe.
this function exists in monetdb but not in monetdbe
Describe the solution you'd like
the function works as that in monetdb
The text was updated successfully, but these errors were encountered: