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

Table reflection fails for bare DateTime #272

Open
hsheth2 opened this issue Oct 30, 2023 · 0 comments
Open

Table reflection fails for bare DateTime #272

hsheth2 opened this issue Oct 30, 2023 · 0 comments

Comments

@hsheth2
Copy link

hsheth2 commented Oct 30, 2023

CREATE MATERIALIZED VIEW db1.mv_with_target_table TO db1.mv_target_table
(
    `col_DateTime` DateTime,
    `col_Int64` Int64,
    `col_Float64` Float64,
    `col_Decimal64` Decimal(18, 5),
    `col_String` String
) AS
SELECT
    col_DateTime,
    col_Int64,
    col_Float64,
    col_Decimal64,
    col_String
FROM db1.test_data_types;

Seeing this error when using reflection to get columns:

DateTime.__init__() takes from 1 to 2 positional arguments but 3 were given

Expected behavior
No exceptions.

Versions

SQLAlchemy==1.4.44
clickhouse-sqlalchemy==0.2.5
python 3.10
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

1 participant