Repository navigation
Revert "ref(reader): Improve abstractions around column transformation (#800)" - #805
Merged
Merged
Conversation
fpacifici
approved these changes
Mar 3, 2020
This was referenced Mar 3, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ClickHouse sometimes returns
DateTimeobjects (and possiblyDate) objects with timezone parameters. I have not been able to track down when or why this happens — it happens for me in some tests but not others, so there should be some kind of pattern to it. (I assume it has something to do with the way the DDL is applied, but I have not verified this.)The presence of the timezone in the column type causes the type transformer not to be used (and it is now apparent to me why these patterns were structured as they were, tracing their lineage all the way back to #76 which changed but did not test this behavior.)
The existing tests did not fail, since this function on the web query path acts as a safety rail if any types make it through the remainder of the execution pipeline without being properly encoded. This function is never actually hit in production, since the
cache.setcall during query execution will throw if any values are not serializable. This cache is not enabled in tests.I still think the fundamental approach of this original PR (#800) is a good one, but it will take some time to fix, and the tests should also be made more robust before attempting that change again.
This reverts commit ec59f9c.