vmware-archive / sql-to-dbsp-compiler

Compiler translating SQL view definitions into DBSP circuits (https://github.com/vmware/database-stream-processor)
Other
28 stars 4 forks source link

Use IR nodes for casts, binary operations, unary operations #105

Closed mihaibudiu closed 1 year ago

mihaibudiu commented 1 year ago

@Kixiron please check whether this addresses your requests

mihaibudiu commented 1 year ago

@lalithsuresh this seems to also have run 4 CI tests

Kixiron commented 1 year ago

What's the output json look like? Also, I have support for unsigned integers if you want to add those to your frontend (I think it's relatively standard with UNSIGNED)

You can also extend your integer support some if you want, I can support everything from 8bit to 128bit integers (signed and unsigned) and if we really wanted I could also support arbitrary bit sizes less than 128 (e.g. INTEGER(7) = i7)

mihaibudiu commented 1 year ago

Unfortunately SQL has no support for unsigned integers, so I don't know how to generate properly such code. I think you should try to build the compiler, it's really one command-line you need to run if you have installed java and maven. Then you can generate lots of json easily - one more command-line.