10 创建组合分区(日期,期货合约代码)的表,chunks 目录为何多出来好几层目录。

  1. 第二层attachments-2023-04-k71mjq9u644940242b39f.jpg


第三层

attachments-2023-04-DwWhwRYc6449404f53765.jpg




  第四层                                                                                                                                                                                            

attachments-2023-04-2ZihJhhX64494061848cc.jpg


第一层    


attachments-2023-04-YURrTQGQ64493fe62d12e.jpg




dataPath1 = "dfs://tick"
dbDate = database(,VALUE, 2023.03.01..2030.12.31)
dbSymb = database(,VALUE,`ag2309`fu2305`eg2309)
db1 = database(dataPath1,COMPO,[dbDate,dbSymb],engine=`TSDB)

tick_columns = ["symbol", "exchange", "datetime", "name", "volume", "turnover", "open_interest", "last_price", "last_volume", "limit_up", "limit_down",
                "open_price", "high_price", "low_price", "pre_close".......]
tick_type = [SYMBOL, SYMBOL, NANOTIMESTAMP, SYMBOL, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE,
             DOUBLE, DOUBLE, DOUBLE, DOUBLE.......]
tick = table(1:0, tick_columns, tick_type)

tickt = db1.createPartitionedTable(
    tick,
    "tick",
    partitionColumns=["datetime","symbol"],
    sortColumns=["symbol", "exchange", "datetime"],
    keepDuplicates=LAST)




请先 登录 后评论

最佳答案 2023-04-27 19:16

问题复现不了,请问可以提供一下您的脚本吗?

请先 登录 后评论

其它 0 个回答

  • 2 关注
  • 1 收藏,1242 浏览
  • 提出于 2023-04-26 02:27

相似问题