Skip to content

Tweaks based on our requirements #2

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

Merged
merged 11 commits into from
Mar 22, 2023
Merged

Tweaks based on our requirements #2

merged 11 commits into from
Mar 22, 2023

Conversation

the21st
Copy link

@the21st the21st commented Mar 16, 2023

No description provided.

the21st added 8 commits March 16, 2023 15:03
When running the ./monaco_editor/package.json "start" script
When there is a table specified in the FROM clause, only suggest unscoped columns from that table.

If no table is specified, suggest all columns from all tables.
Only suggest tables and aliases that are in the FROM clause after SELECT keyword, instead of all tables
So instead of showing `catalog1.schema1.table1` all at once after FROM, we'll only show catalog1, and then after a dot, we'll suggest schema1, and only when we have `SELECT * FROM catalog1.schema1.` will be suggest table1.

It's a total hack, putting it all in the `createTableCandidates` function, but it works and it's the fastest way to implement this.
@the21st the21st marked this pull request as ready for review March 16, 2023 14:32
Copy link

@ondrejromancov ondrejromancov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for recording the intro video, it helped a lot! 👍

Copy link

@petrfejfar petrfejfar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, however it's hard to test - how hard is to run it locally and use it in our develop?

@the21st the21st requested a review from ondrejromancov March 21, 2023 16:35
@the21st the21st force-pushed the ss/improvements-2 branch from f599586 to f0b5dcb Compare March 21, 2023 16:41
@the21st
Copy link
Author

the21st commented Mar 21, 2023

@petrfejfar I think I got it running by running yarn install, then yarn bootstrap and then ran yarn start in the ./example/monaco_editor dir

Let me know if that worked for you

@the21st the21st force-pushed the ss/improvements-2 branch from f0b5dcb to 2928b24 Compare March 21, 2023 16:45
Copy link

@ondrejromancov ondrejromancov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 😊

@the21st the21st merged commit 603cb1a into release Mar 22, 2023
@the21st the21st deleted the ss/improvements-2 branch March 22, 2023 14:48
@deepnote deepnote deleted a comment from petrfejfar Mar 22, 2023
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

Successfully merging this pull request may close these issues.

3 participants