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

Join using RDB$DB_KEY produce NATURAL plan [CORE3997] #4329

Closed
firebird-automations opened this issue Nov 26, 2012 · 9 comments
Closed

Join using RDB$DB_KEY produce NATURAL plan [CORE3997] #4329

firebird-automations opened this issue Nov 26, 2012 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @aafemt

Duplicates CORE1295

Following script shows plan JOIN (T_KEY NATURAL, T NATURAL) instead of JOIN (T_KEY NATURAL, T INDEX())

create table t (f integer);
create table t_key (k char(8) character set octets);
commit;
set term ^;
execute block as
declare variable i integer=100000;
begin
While (i>0) do
begin
insert into t values (:i);
i = i-1;
end
end^
set term ;^
commit;
insert into t_key select rdb$db_key from t where f=1;
commit;
set plan on;
select f from t join t_key on t.rdb$db_key=t_key.k;

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE1295 [ CORE1295 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

I'm closing it in favor of a more generic CORE1295 which will be backported into v2.5.3.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants