Skip to content

View in drift files - specify bool #2833

Answered by simolus3
Foxsterc asked this question in Q&A
Discussion options

You must be logged in to vote

Does CAST(... as BOOL) work? Drift should pick up the hint and rewrite the cast to an integer when emitting the final SQL.

But also, can you post the query used in the view and perhaps the table definitions referenced therein? In most cases, drift should be able to infer the column type on its own. With more details I can look into why that didn't work here.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Foxsterc
Comment options

@simolus3
Comment options

@Foxsterc
Comment options

Answer selected by Foxsterc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants