Comments (1)
There's another thing that goes wrong here when there's no row(s). MySQL returns no rows, but with a NEWDECIMAL
type, by Vitess seems to return NULL_TYPE
.
Test failure output
--- FAIL: TestSubqueries (0.02s)
--- FAIL: TestSubqueries/0_SELECT_(SELECT_SUM(LENGTH(extra_info))_FROM_user_extra)_AS_total_length_extra_info_FROM_user (0.00s)
mysql.go:265: for column total_length_extra_info field types do not match
Not equal:
MySQL: DECIMAL
Vitess: NULL_TYPE
Canonical MySQL output
mysql> SELECT SUM(LENGTH(extra_info)) FROM user_extra;
Field 1: `SUM(LENGTH(extra_info))`
Catalog: `def`
Database: ``
Table: ``
Org_table: ``
Type: NEWDECIMAL
Collation: binary (63)
Length: 32
Max_length: 0
Decimals: 0
Flags: BINARY NUM
+-------------------------+
| SUM(LENGTH(extra_info)) |
+-------------------------+
| NULL |
+-------------------------+
1 row in set (0.01 sec)
mysql> SELECT (SELECT SUM(LENGTH(extra_info)) FROM user_extra) AS total_length_extra_info FROM user;
Field 1: `total_length_extra_info`
Catalog: `def`
Database: ``
Table: ``
Org_table: ``
Type: NEWDECIMAL
Collation: binary (63)
Length: 32
Max_length: 0
Decimals: 0
Flags: BINARY NUM
0 rows in set (0.01 sec)
from vitess.
Related Issues (20)
- unknown column with aggregation inside derived table
- Bug Report: [`vtgate`] `RemoveTablet` during `TabletExternallyReparented` event can lead to healthcheck corruption
- Feature Request: Add support for StalledDiskPrimary recoveries by vtorc
- Feature Request: per-tablet override to Durability Policy promotion rule HOT 1
- Bug Report: Waiting for semi-sync ACK blocks backup from primary tablet HOT 6
- Bug Report: Panic in vtgate schema manager because of keyspace rules
- Bad Query Plan with Incorrect WHERE Clause and Missing Bind Variable in Sharded Query
- Feature Request: Vitess provide a vtgate queries metric by tablet type HOT 2
- Bug Report: v19 tablet server config parsing incorrect HOT 2
- Bug Report: Online DDL: zero date possible in `_vt.schema_migrations.last_throttled_timestamp`
- Bug Report: Panic in query planning of a query using user defined aggregation function
- Bug Report: Regression in subquery planning wrt v18
- VTAdmin to use VTGate's vexplain HOT 2
- Feature Request: Per-table VStream COPY
- Support recursive CTEs
- Feature Request: ability to control streamer snapshot method (GTID tracking vs table locking) HOT 2
- Feature Request: clarify flag documentation for --db_charset
- Bug Report: MySQL 8.4 default configuration contains removed configuration variable `default_authentication_plugin`
- Feature Request: Add more flexibility backing up/restoring from different backup engines.
- Feature Request: allow current/before `PRIMARY` to be specified in PRS
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 vitess.