Code Monkey home page Code Monkey logo

clickhouse-migrations's Introduction

Hi there 👋

I'm Oleg! I'm a Software Developer based in Vilnius, Lithuania 🇱🇹, originally from Minsk, Belarus.

GitHub Stats

👷 Check out what I'm currently working on

🔨 My recent Pull Requests

🚀 Latest releases I've contributed to

📄 Latest posts (personal blog in Russian)

Latest posts (medium in English)

💬 Feedback

Say Hello, I don't bite!

📫 How to reach me

clickhouse-migrations's People

Contributors

arvindkumarc avatar azax42 avatar dimoschi avatar zifter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clickhouse-migrations's Issues

Is there a hope to get rid of heavyweight pandas ?

Pandas is heavy to pull it to a tiny microservice container every time we just need to run migrations before the start of this microservice.
I see you use it in migrator.py to merge lists of migrations by certain criterion. May it be rewritten in pure python or by the means of lighter libs, please? ;)

apperantly sql semicolon delimeter is kind of broken atm

good time of the day,

so after 0.3.2 I had issues with same sql request files which worked fine with 0.3.0
for example this query

create table testing.migration 
(
    `app_id`     Int16,
    `created_at` DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`        String CODEC (ZSTD(22)),
    `user_level` Nullable(Int64) CODEC (Delta(2), ZSTD(22)),
    `session_id` Nullable(String) CODEC (ZSTD(22)),
    uid_old      Nullable(String) CODEC (ZSTD(22)),
    id           Int64,
    level_old    Nullable(Int64),
    social       Nullable(String) CODEC (ZSTD(22))
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;

create table testing.refund 
(
    `app_id`       Int16,
    `created_at`   DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`          String CODEC (ZSTD(22)),
    transaction_id Nullable(String) CODEC (ZSTD(22)),
    id             Int64
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;

separates like this for some reason

create table testing.migration         --that on is fine
(
    `app_id`     Int16,
    `created_at` DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`        String CODEC (ZSTD(22)),
    `user_level` Nullable(Int64) CODEC (Delta(2), ZSTD(22)),
    `session_id` Nullable(String) CODEC (ZSTD(22)),
    uid_old      Nullable(String) CODEC (ZSTD(22)),
    id           Int64,
    level_old    Nullable(Int64),
    social       Nullable(String) CODEC (ZSTD(22))
)
    ENGINE = MergeTree()
        PARTITION BY toYYYYMM(created_at)
        PRIMARY KEY app_id
        ORDER BY (app_id, created_at)
        SETTINGS index_granularity = 8192;
create table testing.refund 
(
    `app_id`       Int16,
    `created_at`   DateTime64(3, 'Europe/Moscow') CODEC (Delta(2), ZSTD(22)),
    `uid`          String CODEC (ZSTD(22)), 
    transaction_id Nullable(Strin   --this one is missing some if the lines|

anyways, please ignore this if you know its on my end
ty for reading

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.