Coder Social home page Coder Social logo

Comments (5)

danielgafni avatar danielgafni commented on August 28, 2024 8

Seems like this is still a problem. A default table engine is still not specified.

from clickhouse-sqlalchemy.

antonio-antuan avatar antonio-antuan commented on August 28, 2024 1

I think it is not right because ENGINE clause is mandatory for CREATE TABLE statement in ClickHouse.
Your request is the same as if you request the same feature for ClickHouse DBMS.

from clickhouse-sqlalchemy.

xzkostyan avatar xzkostyan commented on August 28, 2024

Hi.

This error means that engine for table creation is missed somewhere in pandas dataframe internals.

There is an example of table creation in readme: https://github.com/xzkostyan/clickhouse-sqlalchemy#basic-ddl-support. You should define table at first and afterwards create it.

In your case engine detection can be missed during table reflection from database. Can you test it in pure clickhouse-sqlalchemy?

from clickhouse-sqlalchemy.

wuhuanyan avatar wuhuanyan commented on August 28, 2024

HI.
Can you set default engine in "clickhouse_sqlalchemy\drivers\base.py in post_create_table(self, table)"?

from clickhouse-sqlalchemy.

wuhuanyan avatar wuhuanyan commented on August 28, 2024

For example:

if not engine:
    # raise exc.CompileError("No engine for table '%s'" % table.name)
    return ' ENGINE = Log '  # + self.process(engine)
return ' ENGINE = ' + self.process(engine)

I'm a novice to Python,I don't know what self.process (engine) has done.
But after that, it looks as if it can run normally.

from clickhouse-sqlalchemy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.