vlsi / mat-calcite-plugin

Heap query plugin for Eclipse Memory Analyzer
Apache License 2.0
154 stars 24 forks source link

Support hexadecimal literals #12

Open turbanoff opened 5 years ago

turbanoff commented 5 years ago

It would be nice to have support for hex literals. Especially useful for query with address conditions

select *
from "java.lang.Object[]" o
where getAddress(o.this) = 0xe8a675b8
Lerm commented 5 years ago

Please note, that right now this can be achieved by using 'toLong' function:

select *
from "java.lang.Object[]" o
where getAddress(o.this) = toLong('0xe8a675b8')