Skip to content
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

could not map type <Bool> #84

Open
maxpain opened this issue Apr 20, 2022 · 2 comments
Open

could not map type <Bool> #84

maxpain opened this issue Apr 20, 2022 · 2 comments

Comments

@maxpain
Copy link

maxpain commented Apr 20, 2022

Hello. I'm trying to import schema from clickhouse and getting this error.

IMPORT FOREIGN SCHEMA "fastcup" FROM SERVER clickhouse INTO public;
NOTICE:  clickhouse_fdw: ClickHouse <UInt8> type was translated to <INT2> type for column "round_time", change it to BOOLEAN if needed
NOTICE:  clickhouse_fdw: ClickHouse <UInt8> type was translated to <INT2> type for column "game_mode_id", change it to BOOLEAN if needed

Query 1 ERROR: ERROR:  clickhouse_fdw: could not map type <Bool>
@rsurgiewicz
Copy link

I encountered the very same issue

@kolykhalov
Copy link

Convert your column in Clickhouse source table\view to UInt8 and tweak your logic to "0/1" processing in postresql (cast to boolean there in new select if you wish). Thus it will import fine.

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

No branches or pull requests

3 participants