aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/test/resources/decimal/cast_decimal_int.json
blob: 27df35aea2fafc4c6098188582f0350da6f14c1a (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
{
  "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:["/input_simple_decimal.json"]
    }, {
      "pop" : "project",
      "@id" : 2,
      "exprs" : [
        { "ref" : "DEC9_COL", "expr": "(cast(cast(INT_COL as int) as vardecimal(9, 0)))" },
        { "ref" : "DEC38_COL", "expr": "(cast(BIGINT_COL as vardecimal(38, 0)))" }
      ],

      "child" : 1
    },
    {
      "pop" : "project",
      "@id" : 4,
      "exprs" : [
        {"ref": "DEC9_INT", "expr" : "cast(DEC9_COL as int)"},
        {"ref": "DEC38_INT", "expr" : "cast(DEC38_COL as int)"},
        {"ref": "DEC9_BIGINT", "expr" : "cast(DEC9_COL as bigint)"},
        {"ref": "DEC38_BIGINT", "expr" : "cast(DEC38_COL as bigint)"}
      ],

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