File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 8
8
// TODO: make the server report types.
9
9
// Map LNT types to Tableau datatypes.
10
10
var col_type_mapper = {
11
- "compile_status" : tableau . dataTypeEnum . int ,
12
- "execution_status" : tableau . dataTypeEnum . int ,
13
- "compile_time" : tableau . dataTypeEnum . float ,
14
- "execution_time" : tableau . dataTypeEnum . float ,
15
- "score" : tableau . dataTypeEnum . int ,
16
- "mem_bytes" : tableau . dataTypeEnum . int ,
17
- "hash_status" : tableau . dataTypeEnum . int ,
18
- "hash" : tableau . dataTypeEnum . string ,
19
- "code_size" : tableau . dataTypeEnum . int } ;
11
+ "INTEGER" : tableau . dataTypeEnum . int ,
12
+ "FLOAT" : tableau . dataTypeEnum . float ,
13
+ "VARCHAR" : tableau . dataTypeEnum . string } ;
20
14
21
15
/** Get a json payload from the LNT server asynchronously or error.
22
16
* @param {string } payload_url JSON payloads URL.
108
102
sample_cols . push ( {
109
103
id : field . column_name ,
110
104
alias : field . column_name ,
111
- dataType : col_type_mapper [ field . column_name ]
105
+ dataType : col_type_mapper [ field . column_type ]
112
106
} ) ;
113
107
} ) ;
114
108
You can’t perform that action at this time.
0 commit comments