aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/test/resources/decimal/cast_simple_decimal.json
blob: 0291724659414423858a6ea2c57538ae1241599d (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" : "DECIMAL_9",
      "expr" : " (cast(DEC9 as decimal9(9, 4))) "
    },
    { "ref" : "DECIMAL_18", "expr": "(cast(DEC18 as decimal18(18, 9)))" }
    ],

    "child" : 1
  },
{
    "pop" : "project",
    "@id" : 4,
    "exprs" : [ {
      "ref" : "DECIMAL_9",
      "expr" : " cast(DECIMAL_9 as varchar(100))  "
    },
    {"ref": "DECIMAL_18", "expr" : "cast(DECIMAL_18 as varchar(100))"}
    ],

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