aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/test/resources/decimal/cast_float_decimal.json
blob: e8f318a24666219c70d0dfd2f52546ab0960cc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  "head" : {
    "version" : 1,
    "generator" : {
      "type" : "org.apache.drill.exec.planner.logical.DrillImplementor",
      "info" : ""
    },
    "type" : "APACHE_DRILL_PHYSICAL",
    "resultMode" : "EXEC"
  },
  graph:[
  {
      @id:1,
      pop:"fs-scan",
      format: {type: "json"},
      storage:{type: "file", connection: "classpath:///"},
      files:["#{TEST_FILE}"]
  }, {
    "pop" : "project",
    "@id" : 2,
    "exprs" : [ {
      "ref" : "F4",
      "expr" : " (cast(DEC9 as float4)) "
    },
    { "ref" : "F8", "expr": "(cast(DEC18 as float8))" }
    ],

    "child" : 1
  },
{
    "pop" : "project",
    "@id" : 4,
    "exprs" : [ {
      "ref" : "DECIMAL_9",
      "expr" : " cast(F4 as vardecimal(9, 4))  "
    },
    {"ref": "DECIMAL38", "expr" : "cast(F8 as vardecimal(38, 4))"}
    ],

    "child" : 2
  },
{
    "pop" : "screen",
    "@id" : 5,
    "child" : 4
  } ]
}