[Cubicweb] A small feedback for the float format in rql

Dimitri Papadopoulos Orfanos dimitri.papadopoulos at cea.fr
Tue Apr 1 11:12:36 CEST 2014

Hi Jinpeng,

Unlike SQL, RQL does not support exponents.

This is documented here:
  FLOAT    ::= '\d+\.\d*'

This is implemented in /usr/share/pyshared/rql/parser.py:
  ('FLOAT', re.compile('-?\\d+\\.\\d*')),

Indeed this should be fixed. I suggest you open a ticket to report this

By the way, in real code use only < and > for floats, not equality
operators. Equality doesn't make much sense for floating point variables.

Dimitri Papadopoulos
I2BM, NeuroSpin
F-91191 Gif-sur-Yvette cedex, France

More information about the Cubicweb mailing list