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

Expression index may be not used for derived fields or view fields [CORE4118] #4446

Closed
firebird-automations opened this issue Jun 15, 2013 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

Is related to QA528

Votes: 1

Test case:

create table t (id int, d timestamp);
create index itd on t computed (cast(d as date));

select * from t
where cast(d as date) = current_date
-- PLAN (T INDEX (ITD))

select * from (select id, cast(d as date) as d from t)
where d = current_date
-- PLAN (T NATURAL)
-- expected:
-- PLAN (T INDEX (ITD))

Commits: 3ee2025 cfe3f24 FirebirdSQL/fbt-repository@8f69179 FirebirdSQL/fbt-repository@7848e73 FirebirdSQL/fbt-repository@141389a

====== Test Details ======

Confirmed on WI-V2.5.2.26540

@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

Fix Version: 2.5.3 [ 10461 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA528 [ QA528 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

Test Details: Confirmed on WI-V2.5.2.26540

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