创建value分区,分区之中包含中文,报错:A string value-partition column can't contain any invisible character.

版本2.00.9,我查了一下,在另一个问题中提到,增加了非打印字符的判断,但是应该是误把中文字符给当成非打印字符也给禁止了吧?

请先 登录 后评论

1 个回答

wale

我试了一下,如下所示,中文是可以,能贴一下你的建库语句吗?


db_index_1min = database("dfs://Min",  VALUE, ['000016.XSHG', '中文', '000905.XSHG', '000852.XSHG'], engine="TSDB")

col_names = ['order_book_id', 'datetime', 'open', 'low', 'high', 'close',
            'volume', 'total_turnover', 'index_name_cn']
col_types = ["SYMBOL", "TIMESTAMP", 'DOUBLE', 'DOUBLE', 'DOUBLE', 'DOUBLE',
             'DOUBLE', 'DOUBLE', "STRING"]
table_schema = table(1:0, col_names, col_types)
createPartitionedTable(db_index_1min, table_schema, "Index_1Min_RQ", partitionColumns=`order_book_id,
                                compressMethods={date: "delta"},
                                sortColumns=`order_book_id`datetime,
                                keepDuplicates=LAST)
请先 登录 后评论
  • 1 关注
  • 0 收藏,598 浏览
  • cheng qiu 提出于 2023-06-08 09:58

相似问题