File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2828 },
2929 "dependencies" : {
3030 "@cubejs-backend/base-driver" : " ^0.36.5" ,
31+ "@cubejs-backend/schema-compiler" : " ^0.36.7" ,
3132 "@cubejs-backend/shared" : " ^0.36.5" ,
3233 "presto-client" : " ^0.12.2" ,
3334 "ramda" : " ^0.27.0" ,
Original file line number Diff line number Diff line change @@ -129,4 +129,8 @@ export class PrestodbQuery extends BaseQuery {
129129 templates . types . binary = 'VARBINARY' ;
130130 return templates ;
131131 }
132+
133+ public castToString ( sql : any ) : string {
134+ return `CAST(${ sql } as VARCHAR)` ;
135+ }
132136}
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const ADAPTERS = {
3838 elasticsearch : ElasticSearchQuery ,
3939 materialize : PostgresQuery ,
4040 cubestore : CubeStoreQuery ,
41+ trino : PrestodbQuery ,
4142} ;
4243
4344export const queryClass = ( dbType , dialectClass ) => dialectClass || ADAPTERS [ dbType ] ;
You can’t perform that action at this time.
0 commit comments