-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
inject query comments (#1643) #1864
Merged
Merged
Commits on Nov 4, 2019
-
Make a fake "macro" that we parse specially with a single global context Macro takes an argument (the node, may be none) Users supply the text of the macro in their 'user_config' under a new 'query_comment' No macros available query generator is an attribute on the connection manager - has a thread-local comment str - when acquiring a connection, set the comment str new 'connection_for' context manager: like connection_named, except also use the node to set the query string Updated unit tests to account for query comments Added a hacky, brittle integration test - log to a custom stream and read that Trim down the "target" context value to use the opt-in connection_info - Make sure it contains a superset of the documented stuff - Make sure it does not contain any blacklisted items Change some asserts to raise InternalExceptions because assert error messages in threads are useless
Jacob Beck committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for ff158b8 - Browse repository at this point
Copy the full SHA ff158b8View commit details -
Move query comments into the project config
Add special handling to 'dbt debug' for this behavior Rework the dependencies/requirements for adapters since they now require more of a config object tests...
Jacob Beck committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 5b6586d - Browse repository at this point
Copy the full SHA 5b6586dView commit details -
Jacob Beck committed
Nov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 15ff08d - Browse repository at this point
Copy the full SHA 15ff08dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57f4221 - Browse repository at this point
Copy the full SHA 57f4221View commit details -
Jacob Beck committed
Nov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 1873f40 - Browse repository at this point
Copy the full SHA 1873f40View commit details -
macro support, tests, add yet another mypy env for development
Jacob Beck committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for 84d585c - Browse repository at this point
Copy the full SHA 84d585cView commit details -
pin urllib3 to a version that snowflake supports
Jacob Beck committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for ab9fcb4 - Browse repository at this point
Copy the full SHA ab9fcb4View commit details -
if the comment macro is null/empty, no comments
Jacob Beck committedNov 4, 2019 Configuration menu - View commit details
-
Copy full SHA for b56d93b - Browse repository at this point
Copy the full SHA b56d93bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.