cube.js dremio driver 类型转换bug修改

主要是为了和官方保持一致,添加了一下方法

  castParameter() {
    if (this.definition().type === 'boolean') {
      return 'CAST(? AS BOOLEAN)';
    } else if (this.measure || this.definition().type === 'number') {
      // TODO here can be measure type of string actually
      return 'CAST(? AS DOUBLE)';
    }
 
    return '?';
  }

说明

版本也已经push npm 官方了

参考资料

https://github.com/rongfengliang/cubejs-dremio-driver
https://github.com/cube-js/cube.js/pull/2560

posted on 2021-04-15 22:55  荣锋亮  阅读(91)  评论(0编辑  收藏  举报

导航