| 284 | } |
| 285 | |
| 286 | TEST_F(ExprCodegenTest, TestGetConstFnAttrsInterpreted) { |
| 287 | // Call fn and check results'. The input is of type Decimal(10,2) (i.e. 10000.25) and |
| 288 | // the output type is Decimal(10,1) (i.e. 10000.3). The precision and scale of arguments |
| 289 | // and return types are encoded above (ARG0_*, RET_*); |
| 290 | int64_t v = 1000025; |
| 291 | DecimalVal arg0_val(v); |
| 292 | BooleanVal arg1_val; |
| 293 | StringVal arg2_val; |
| 294 | DecimalVal result = TestGetFnAttrs(fn_ctx_, arg0_val, arg1_val, arg2_val); |
| 295 | // sanity check result |
| 296 | EXPECT_EQ(result.is_null, false); |
| 297 | EXPECT_EQ(result.val8, 100003); |
| 298 | CheckFnAttr(); |
| 299 | } |
| 300 | |
| 301 | TEST_F(ExprCodegenTest, TestInlineConstFnAttrs) { |
| 302 | // Setup thrift descriptors |
nothing calls this directly
no test coverage detected