-
Notifications
You must be signed in to change notification settings - Fork 623
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
fix metadata views, incorrect query #1436
Conversation
12f1612
to
66c3cb0
Compare
66c3cb0
to
3b25a11
Compare
I didn't have time to check it earlier, I'll review this on Monday. |
FieldTypes []TypeInfo | ||
Keyspace string | ||
Name string | ||
BaseTableId UUID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about having a pointer to the base table? possibly instead of ID and name?
BaseTable *TableMetadata
One drawback: Views would have be executed in serial order after table metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea, but it would only replace BaseTableName right? Because TableMetadata doesn't have the BaseTableId.
Should we be concerned about breaking existing usage for We have the option of leaving |
Hmm, I may not fully understand what you mean, the problem I think it's that a bug that caused a change in the API was introduced. So you are suggesting adding below here a new line |
Yeah, I understand that it may cause confusion to new users (we can document the behaviour. Introducing a new map+struct and leave the existing functionality as it is will avoid breaking usages of views as udts. |
c1efbba
to
706056f
Compare
706056f
to
314cfa8
Compare
@jorgebay thank you for the feedback! I think this is ready for another looks. There's a failing test in one of the runs, but seems unrelated:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Fixes #1435