vmware-archive / database-stream-processor

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

[JIT] Support for the NULL type #373

Open mihaibudiu opened 1 year ago

mihaibudiu commented 1 year ago

SQL supports the NULL type, which is the type of the NULL literal. There is no way to represent this in the JIT compiler. This is useful for example to cast NULL to various other types, as in the following program: SELECT T.COL4 || NULL FROM T Perhaps the compiler can eliminate this, but right now it doesn't.

Kixiron commented 1 year ago

I think this should be handled on the compiler's side so that it can appropriately implement null's semantics within the given context