Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monetdb allows to use non-existing optimizer pipe #6983

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

monetdb allows to use non-existing optimizer pipe #6983

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels

Comments

@monetdb-team
Copy link

@monetdb-team monetdb-team commented Nov 30, 2020

Date: 2020-10-06 16:46:32 +0200
From: @swingbit
To: SQL devs <>
Version: -- development
CC: @PedroTadim

Last updated: 2020-11-24 11:37:22 +0100

Comment 28152

Date: 2020-10-06 16:46:32 +0200
From: @swingbit

User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
Build Identifier:

monetdb create test
monetdb release test
monetdb set optpipe=whatever test
mclient -d test

Welcome to mclient, the MonetDB/SQL interactive terminal (unreleased)
Database: MonetDB v11.39.0 (hg id: be68ac80bf), 'mapi:monetdb://photon.hq.spinque.com:56000/test'
FOLLOW US on https://twitter.com/MonetDB or https://github.com/MonetDB/MonetDB
Type \q to quit, ? for a list of available commands
auto commit mode: on
sql>select * from sys.tables;
Function 'calc.+' not defined

Related to the optimizer pipe, a question: is the following intentional in Oct2020?

sql>set optimizer='default_pipe';
SET: Variable 'optimizer' unknown

If so, is there a new way to set the optimizer pipe from a client session?

Reproducible: Always

Comment 28153

Date: 2020-10-06 17:12:09 +0200
From: @PedroTadim

Hello Roberto,

For the last example, can you tell which schema are you on? Due to scoping changes, the parser will attempt to find the variable on the current session's schema.

Comment 28154

Date: 2020-10-06 17:22:04 +0200
From: @swingbit

Ah I see. I was indeed in a user-created schema.

This works:

sql>set sys.optimizer='default_pipe';
operation successful

Comment 28155

Date: 2020-10-06 17:32:01 +0200
From: @PedroTadim

It's on our TODO list to add a schema search path for SQL objects. It will solve the problem to bind a sys schema function at another schema, as well as session variables.

About the validation of the MAL pipeline, it's something we have to see as well.

Comment 28228

Date: 2020-10-28 16:59:16 +0100
From: MonetDB Mercurial Repository <>

Changeset 4d973ec7aa13 made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=4d973ec7aa13

Changeset description:

Fix for bug #6983, test if the sql optimizer pipeline is valid when the SQL scenario is launched

Comment 28244

Date: 2020-10-30 15:26:13 +0100
From: MonetDB Mercurial Repository <>

Changeset ee92764fedeb made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=ee92764fedeb

Changeset description:

Added test and expected result for bug #6983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant