Skip to content

Revert "ref(reader): Improve abstractions around column transformation (#800)" - #805

Merged
tkaemming merged 1 commit into
masterfrom
revert-result-structure
Mar 3, 2020
Merged

tkaemming merged 1 commit into
masterfrom
revert-result-structure

Conversation

@tkaemming

@tkaemming tkaemming commented Mar 3, 2020 •

Copy link
Copy Markdown
Contributor

ClickHouse sometimes returns DateTime objects (and possibly Date) 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.set call 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.

@tkaemming
tkaemming requested a review from a team March 3, 2020 19:53
@tkaemming
tkaemming merged commit 111b04d into master Mar 3, 2020
@tkaemming
tkaemming deleted the revert-result-structure branch March 3, 2020 20:02
tkaemming added a commit that referenced this pull request Mar 4, 2020
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.

2 participants