Comments (2)
Hi @norcalli, thanks for opening this issue. PostgreSQL also returns 4
for the same query.
postgres=# select @x + 5 from (select -1 as x) s;
?column?
----------
4
(1 row)
In general, we strive to be compatible with PostgreSQL, so this is expected behaviour.
from duckdb.
Thank you for the quick response, I didn't realize this was also an operator in postgres.
I did find it pretty surprising, so I'll stick to using abs() instead.
Thanks!
from duckdb.
Related Issues (20)
- CSV reader: combination of null_padding = true and parallel = false introduces extra row
- DuckDB lag seems to be much slower than Polars HOT 9
- Binder error when using 'split_part' and reading from stdin
- Python API suggests increasing maximum_object_size when read_json but it's unclear how to do that
- motherduck pivot Invalid Error: PendingQuery can only take a single statement erro HOT 2
- Parquet read : Invalid decimal encoding in Parquet file HOT 2
- DuckDB Build Failure in Alpine Linux Docker Image (host: mac M1) HOT 5
- Incorrect results returned when using JOIN statement HOT 3
- performance of lateral join on timestamp fields
- current_timestamp cannot be used in having clause (Binder Error) HOT 1
- PIVOT should have syntax to GROUP BY no columns
- build error: jemalloc fails due to strerror_r returning char* instead of int HOT 1
- `clang_format` doesn't support Apple Silicon so format-fix doesn't run HOT 2
- Using GROUP BY ALL with a window function causes "Binder Error: Cannot mix aggregates with non-aggregated columns!" HOT 1
- _LIBCPP_ASSERT_SEMANTIC_REQUIREMENT assertion failure
- Out of Memory Error: Failed to allocate block of 262144 bytes (bad allocation) HOT 1
- Inconsistent Query Results with GREATEST HOT 1
- Very slow performance for query targeting partitioned parquet files with WHERE clause for values inside another duckdb table
- insert with on conflict fails if column has index
- Unexpected error raised by PRINTF
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duckdb.