fix: [6587137697] Forbid query ins_virtual_child_columns.#34567
fix: [6587137697] Forbid query ins_virtual_child_columns.#34567
Conversation
Summary of ChangesHello @Simon9997, 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 enhances system stability and security by preventing direct user queries to a specific internal system table, 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. Changelog
Activity
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 correctly forbids direct queries to the ins_virtual_child_columns system table. The change in parTranslater.c is straightforward and effectively implements the restriction. The test suite has been updated accordingly: random_stream.py is modified to exclude this table from random testing, and new test cases have been added in test_meta_information_schema.py and test_information_schema.py to verify that queries to this table now fail with the expected error. The changes are of high quality and I have no further suggestions.
There was a problem hiding this comment.
Pull request overview
This PR forbids querying information_schema.ins_virtual_child_columns and adds regression tests to assert the query is rejected.
Changes:
- Add parser-side rejection for the
ins_virtual_child_columnssystem table. - Add system tests validating the rejection error.
- Remove
ins_virtual_child_columnsfrom the random stream system-table query pool.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/cases/uncatalog/system-test/0-others/test_information_schema.py | Adds a test that querying ins_virtual_child_columns fails with an expected error message. |
| test/cases/21-MetaData/test_meta_information_schema.py | Adds the same rejection test to the metadata information schema suite. |
| test/cases/18-StreamProcessing/99-Others/random_stream.py | Removes ins_virtual_child_columns from the set of tables used for randomized querying. |
| source/libs/parser/src/parTranslater.c | Adds a translator check to reject TSDB_INS_TABLE_VC_COLS as a system table query. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d9d674c to
1ccb8d0
Compare
Description
Issue(s)
Checklist
Please check the items in the checklist if applicable.