bcc4c29d107910c0b2f63c05f8d73d64495e3b0c,src/infi/clickhouse_orm/fields.py,LowCardinalityField,get_sql,#LowCardinalityField#Any#Any#,545

Before Change


        else:
            sql = self.inner_field.get_sql(with_default_expression=False)
            logger.warning("LowCardinalityField not supported on clickhouse-server version < 19.0 using {} as fallback".format(self.inner_field.__class__.__name__))
        if with_default_expression:
            if self.alias:
                sql += " ALIAS %s" % self.alias
            elif self.materialized:
                sql += " MATERIALIZED %s" % self.materialized
            elif self.default:
                default = self.to_db_string(self.default)
                sql += " DEFAULT %s" % default
            if self.codec and db and db.has_codec_support:
                sql+= " CODEC(%s)" % self.codec
        return sql

After Change


        else:
            sql = self.inner_field.get_sql(with_default_expression=False)
            logger.warning("LowCardinalityField not supported on clickhouse-server version < 19.0 using {} as fallback".format(self.inner_field.__class__.__name__))
        if with_default_expression:
            sql += self._extra_params(db)
        return sql
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 26

Instances


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: bcc4c29d107910c0b2f63c05f8d73d64495e3b0c
Time: 2019-06-24
Author: rbelio@infinidat.com
File Name: src/infi/clickhouse_orm/fields.py
Class Name: LowCardinalityField
Method Name: get_sql


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: bcc4c29d107910c0b2f63c05f8d73d64495e3b0c
Time: 2019-06-24
Author: rbelio@infinidat.com
File Name: src/infi/clickhouse_orm/fields.py
Class Name: LowCardinalityField
Method Name: get_sql


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: bcc4c29d107910c0b2f63c05f8d73d64495e3b0c
Time: 2019-06-24
Author: rbelio@infinidat.com
File Name: src/infi/clickhouse_orm/fields.py
Class Name: Field
Method Name: get_sql


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: bcc4c29d107910c0b2f63c05f8d73d64495e3b0c
Time: 2019-06-24
Author: rbelio@infinidat.com
File Name: src/infi/clickhouse_orm/fields.py
Class Name: NullableField
Method Name: get_sql