-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: add get_column
function for Query obj
#21691
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21691 +/- ##
==========================================
- Coverage 66.85% 66.84% -0.01%
==========================================
Files 1799 1799
Lines 68875 68867 -8
Branches 7319 7314 -5
==========================================
- Hits 46044 46035 -9
- Misses 20944 20953 +9
+ Partials 1887 1879 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
3c9b6d5
to
4c6f1a8
Compare
d14a8f1
to
0ded5ed
Compare
0ded5ed
to
64ab4a6
Compare
@@ -183,7 +182,7 @@ def sql_tables(self) -> List[Table]: | |||
return list(ParsedQuery(self.sql).tables) | |||
|
|||
@property | |||
def columns(self) -> List[ResultSetColumnType]: | |||
def columns(self) -> List[Dict[str, Any]]: |
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.
Not for changing, just curious why moving from a typed dict to a general one?
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.
LGTM!
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.
lgtm!
/testenv up |
@hughhhh Ephemeral environment spinning up at http://35.92.220.6:8080. Credentials are |
I found an issue when i tested in the ephemeral env: Expected: Actual: Screen.Recording.2022-10-04.at.11.35.39.AM.mov |
/testenv up |
1 similar comment
/testenv up |
@hughhhh Ephemeral environment spinning up at http://54.212.89.97:8080. Credentials are |
1 similar comment
@hughhhh Ephemeral environment spinning up at http://54.212.89.97:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
(cherry picked from commit 51c54b3)
🏷️ preset:2022.39 |
SUMMARY
With this PR, we are now using the get_column function within the BaseDatasource, but we didn't incorporate this inside Query model from the original spec. Adding it now to fix the issue for queries being able to execute inside explore
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION