Conversation
* fix: remove asan cases * fix: splite cases * fix: ci case list
fix: set main to new-framework-test.yml
Summary of ChangesHello @cadem, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the system's metadata handling by integrating an Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces ownerId to table metadata responses, propagating this information through various metadata update functions. It also includes several updates and fixes to test cases, particularly for scalar subqueries and privileges. A notable test fix is the addition of GRANT USE ON DATABASE when granting table-level privileges, which is a good correction. The test suite for scalar subqueries has also been significantly expanded.
My review found a minor inconsistency in how ownerId is handled for virtual child tables during creation versus alteration, for which I've left a specific comment.
| } | ||
|
|
||
| code = metaUpdateVtbMetaRsp(pEntry, pEntry->name, NULL, &pEntry->colRef, *ppRsp, TSDB_VIRTUAL_CHILD_TABLE); | ||
| code = metaUpdateVtbMetaRsp(pEntry, pEntry->name, NULL, &pEntry->colRef, 0, *ppRsp, TSDB_VIRTUAL_CHILD_TABLE); |
There was a problem hiding this comment.
There's an inconsistency in handling ownerId for virtual child tables. Here, on creation, ownerId is hardcoded to 0. However, in metaAlterTableColumnRef and metaRemoveTableColumnRef (lines 2010 and 2114), the ownerId for a virtual child table is correctly retrieved from its super table. The ownerId should also be set from the super table during creation to ensure consistency.
SMetaEntry *pStbEntry = NULL;
int64_t ownerId = 0;
if (metaFetchEntryByUid(pMeta, pEntry->ctbEntry.suid, &pStbEntry) == 0) {
ownerId = pStbEntry->stbEntry.ownerId;
metaFetchEntryFree(&pStbEntry);
}
code = metaUpdateVtbMetaRsp(pEntry, pEntry->name, NULL, &pEntry->colRef, ownerId, *ppRsp, TSDB_VIRTUAL_CHILD_TABLE);
Description
Issue(s)
Checklist
Please check the items in the checklist if applicable.