influxdb/influxdb_influxql_parser
Stuart Carnie 15a9b4f1e5
refactor: Drop Expr::UnaryOp to simplify tree traversal (#6600)
* refactor: Drop Expr::UnaryOp to simplify tree traversal

The UnaryOp doesn't provide and additional value and complicates
walking the AST, as literal values wrapped in a UnaryOp(Minus, ...)
require extra handling when reducing time range expressions, etc.

This change also is true to the InfluxQL Go implementation,
which represents whole number literals as signed integers unless
they exceed i64::MAX.

* chore: Refactor all usages of format!("{}", ?) to ?.to_string()

Per https://github.com/influxdata/influxdb_iox/pull/6600#discussion_r1072028895
2023-01-18 02:27:38 +00:00
..
src refactor: Drop Expr::UnaryOp to simplify tree traversal (#6600) 2023-01-18 02:27:38 +00:00
Cargo.toml refactor: Drop Expr::UnaryOp to simplify tree traversal (#6600) 2023-01-18 02:27:38 +00:00