ClickHouse/dbms
pyos 851684de51 Add a JIT interface for row-wise default-nullable functions.
Not actually implemented, though. It does print out some jit-compiled stuff,
but that's about it. For example, this query:

    select number from system.numbers where something(cast(number as Float64)) == 4

results in this on server's stderr:

    define double @"something(CAST(number, 'Float64'))"(void**, i8*, void*) {
    "something(CAST(number, 'Float64'))":
      ret double 1.234500e+04
    }

(and an exception, because that's what the non-jitted method does.)

As one may notice, this function neither reads the input (first argument;
tuple of arrays) nor writes the output (third argument; array), instead
returning some general nonsense.

In addition, `#if USE_EMBEDDED_COMPILER` doesn't work for some reason,
including LLVM headers requires -Wno-unused-parameter, this probably only
works on LLVM 5.0 due to rampant API instability, and I'm definitely
no expert on CMake. In short, there's still a long way to go.
2018-04-25 13:37:25 +03:00
..
benchmark Get rid of double whitespaces [#CLICKHOUSE-2]. 2017-10-26 21:36:23 +03:00
cmake Auto version update to [54380] 2018-04-20 22:47:21 +03:00
scripts Fix uniqHLL12 and uniqCombined for cardinalities 100M+. 2018-01-31 11:36:01 +00:00
src Add a JIT interface for row-wise default-nullable functions. 2018-04-25 13:37:25 +03:00
tests Better test #2066 2018-04-22 22:09:35 -07:00
CMakeLists.txt Add a JIT interface for row-wise default-nullable functions. 2018-04-25 13:37:25 +03:00