You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
with sql command to creat a table, we can use COMMENT attribute to set a comment for a field.
CREATE TABLE stdfdb.NewTable2
( Column4 String COMMENT 'TEST',
`Column5` String
)
ENGINE = MergeTree()
ORDER BY Column1
SETTINGS index_granularity = 8192
but with clickhouse-sqlalchemy classs map:
class TbFile(Base, CommonDB2): tablename = 'tb_file' table_args = {'comment': 'File Info Table V1.0'}
# id = Column(types.UUID, primary_key=True)
filename = Column(types.String, primary_key=True)
type = Column(types.String, comment='test it') table_args = (
engines.MergeTree(partition_by='filename', order_by='filename', primary_key='filename'),
)
The comment function not works. after create table with ORM, we can't see the comment 'test it' with the field type To Reproduce
See above
Expected behavior
Can see the comment 'test it' with the field type
Versions
clickhouse-sqlalchemy0.1.6
Python3.8.5
The text was updated successfully, but these errors were encountered:
Describe the bug
with sql command to creat a table, we can use COMMENT attribute to set a comment for a field.
CREATE TABLE stdfdb.NewTable2
(
Column4
String COMMENT 'TEST',)
ENGINE = MergeTree()
ORDER BY Column1
SETTINGS index_granularity = 8192
but with clickhouse-sqlalchemy classs map:
class TbFile(Base, CommonDB2):
tablename = 'tb_file'
table_args = {'comment': 'File Info Table V1.0'}
# id = Column(types.UUID, primary_key=True)
filename = Column(types.String, primary_key=True)
type = Column(types.String, comment='test it')
table_args = (
engines.MergeTree(partition_by='filename', order_by='filename', primary_key='filename'),
)
The comment function not works. after create table with ORM, we can't see the comment 'test it' with the field type
To Reproduce
See above
Expected behavior
Can see the comment 'test it' with the field type
Versions
The text was updated successfully, but these errors were encountered: