vmware-archive / database-stream-processor

Streaming and Incremental Computation Framework
Other
225 stars 20 forks source link

[JIT] jit compiler panic #368

Closed mihaibudiu closed 1 year ago

mihaibudiu commented 1 year ago

This seems to be a different root cause than #366 thread 'main' panicked at 'assertion failed: b.is_signed_int()', crates/dataflow-jit/src/codegen/mod.rs:1811:21 JSON:

{
  "nodes" : {
    "2768" : {
      "Source" : {
        "layout" : 1,
        "table" : "T"
      }
    },
    "2825" : {
      "Filter" : {
        "input" : 2768,
        "filter_fn" : {
          "args" : [ {
            "id" : 1,
            "layout" : 1,
            "flags" : "input"
          } ],
          "ret" : "Bool",
          "entry_block" : 1,
          "blocks" : {
            "1" : {
              "id" : 1,
              "body" : [ [ 2, {
                "Constant" : {
                  "Bool" : false
                }
              } ], [ 3, {
                "Load" : {
                  "source" : 1,
                  "source_layout" : 2,
                  "column" : 1,
                  "column_type" : "F64"
                }
              } ], [ 4, {
                "Load" : {
                  "source" : 1,
                  "source_layout" : 2,
                  "column" : 4,
                  "column_type" : "I32"
                }
              } ], [ 5, {
                "IsNull" : {
                  "target" : 1,
                  "target_layout" : 2,
                  "column" : 4
                }
              } ], [ 6, {
                "Cast" : {
                  "value" : 4,
                  "from" : "I32",
                  "to" : "F32"
                }
              } ], [ 7, {
                "Copy" : {
                  "value" : 5,
                  "value_ty" : "Bool"
                }
              } ], [ 8, {
                "Cast" : {
                  "value" : 6,
                  "from" : "F32",
                  "to" : "F64"
                }
              } ], [ 9, {
                "Copy" : {
                  "value" : 7,
                  "value_ty" : "Bool"
                }
              } ], [ 10, {
                "Constant" : {
                  "Bool" : false
                }
              } ], [ 11, {
                "BinOp" : {
                  "lhs" : 3,
                  "rhs" : 8,
                  "kind" : "LessThan",
                  "operand_ty" : "F64"
                }
              } ], [ 12, {
                "BinOp" : {
                  "lhs" : 10,
                  "rhs" : 9,
                  "kind" : "Or",
                  "operand_ty" : "Bool"
                }
              } ], [ 13, {
                "Select" : {
                  "cond" : 12,
                  "if_true" : 2,
                  "if_false" : 11
                }
              } ] ],
              "terminator" : {
                "Return" : {
                  "value" : {
                    "Expr" : 13
                  }
                }
              }
            }
          }
        }
      }
    },
    "2826" : {
      "Sink" : {
        "input" : 2825,
        "query" : "CREATE VIEW V AS SELECT * FROM T WHERE COL2 < CAST(COL5 AS FLOAT)"
      }
    }
  },
  "layouts" : {
    "1" : {
      "columns" : [ {
        "nullable" : false,
        "ty" : "I32"
      }, {
        "nullable" : false,
        "ty" : "F64"
      }, {
        "nullable" : false,
        "ty" : "Bool"
      }, {
        "nullable" : false,
        "ty" : "String"
      }, {
        "nullable" : true,
        "ty" : "I32"
      }, {
        "nullable" : true,
        "ty" : "F64"
      } ]
    },
    "2" : {
      "columns" : [ {
        "nullable" : false,
        "ty" : "I32"
      }, {
        "nullable" : false,
        "ty" : "F64"
      }, {
        "nullable" : false,
        "ty" : "Bool"
      }, {
        "nullable" : false,
        "ty" : "String"
      }, {
        "nullable" : true,
        "ty" : "I32"
      }, {
        "nullable" : true,
        "ty" : "F64"
      } ]
    }
  }
}