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

Failure to define indexes on expressions. #2643

Closed
masahiro-ikemoto opened this issue Sep 27, 2023 · 1 comment
Closed

Failure to define indexes on expressions. #2643

masahiro-ikemoto opened this issue Sep 27, 2023 · 1 comment

Comments

@masahiro-ikemoto
Copy link

On Drift-2.11.1, I was able to define indexes on expressions like this:

CREATE INDEX foo_index on foo(MAX(field1, field2));

However, after upgrading to Drift-2.12, index creation fails with the following error

[WARNING] drift_dev on foo.drift:
Could not analyze DriftElementId(package:package/foo.drift, foo_index)
type 'FunctionExpression' is not a subtype of type 'Reference' in type cast
@masahiro-ikemoto masahiro-ikemoto changed the title Failure to define an indexes on expressions. Failure to define indexes on expressions. Sep 27, 2023
@simolus3
Copy link
Owner

Thanks for the report, this has been fixed in drift_dev version 2.12.1.

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

No branches or pull requests

2 participants