-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[YCQL] system_schema.functions undefined column 'body' #3893
Comments
@yb-andrew This worked fine for me in 2.0.10.
I don't see the error you are seeing. Can you double check if it is specific to 2.1.1 and not 2.0.10 (that I tried)? Also, the PRIMARY KEY is different in YugabyteDB. It has two columns (as shown below), whereas in the output you showed (is that from Apache Cassandra?) -- the PRIMARY KEY has three columns.
|
The given 'select...' command completes successfully, but the cortexproject (table_manager.go) is expecting a 'body' column which is not present in the Yugabyte 2.0.10 or 2.1.1 when it tries to query its cassandra data source. |
I'm working on getting Cortex to work on Yugabyte right now and ran into the same issue, as well as another discrepancy. The other is that Is the plan here to add these columns? I'd happily make the changes and submit a PR. |
Good note @marcusbooyah ! This sounds like a relatively simple change to do, we'd be happy to take in a PR for it! Looking back, we did setup an upgrade path, specifically to cover for such changes in the future, in case the system table situation evolved. Here's an example commit doing just that, albeit a long time back: 2a4fb09 cc @m-iancu |
…w match Cassandra Added field `body` to `system_schema.functions` Added field `return_type` to `system_schema.aggregates` Added `argument_types` to the primary key for `system_schema.funtions` and `system_schema.aggregates` `argument_types` is now a frozen list in `system_schema.functions` and `system_schema.aggregates`
Summary: Original fix: neonforge-forks@e775a10 The fix updates the schema for 2 virtual (always empty) YCQL tables: 1. Table `system_schema.functions`: - Added field `body` (type TEXT). - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - `argument_names` is now a FROZEN LIST of TEXT. 2. Table `system_schema.aggregates`: - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - Added field `return_type` (type TEXT). Test Plan: ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testSystemTableColumns ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testEmptySystemTables Reviewers: mihnea, stiwary, skumar Reviewed By: stiwary Subscribers: smishra, ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D37909
Summary: f5ad1fb [#23855] Fixing the calculation of automatic refactoring count. eed826d [#22519] YSQL: Move ExplicitRowLockBuffer class into separate file 99a27e6 [PLAT-14522] Taking yba-ctl backups with prometheus HTTPS e2a84b0 [PLAT-15044] Add preflight check for node addition in provider 7e40d89 [#20769] XCluster: Dynamically apply cdc_wal_retention_time_secs for XCluster aa41478 [#23858] build: fix ./yb_build.sh release --gcc11 bcf7f47 [PLAT-13910] Improve IAM credentials fetch logging and add retries 303a202 [#23778] xCluster: Remove the capability to rename xCluster replication groups Excluded: 58fd26e [#23652] YSQL: Fix TestPgRegressAnalyze.java timeout / database drop failure on TSAN build 31da65b [doc] yb_enable_bitmapscan flag (#23854) 798db14 [#20335] DocDB: Use MonoClock for write query metric 80779d8 [#23860] xCluster: Add automatic ddl mode proto fields afd763d Revert "Revert "[PLAT-14786] Add support to node_agent install to use bind ip and node_external_fqdn"" e86951a [#23841] docdb: Disable stack trace tracking in TSAN builds d600608 [PLAT-15244] Fix schedule not getting updated on edit schedule API call 3c0df09 [PLAT-15214][PLAT-15232]YBC version upgrade to 2.2.0.0-b6 and enable YBC verbose by default aa7372e [#23478] YSQL: fix connection manager session variable case sensitivity issue 0d53558 [PLAT-14810][PLAT-14811][YBA CLI] Support adding and editing EIT configurations ffa537e [PLAT-10706][dr] Support retry-ability of failover and switchover Excluded: 5ae4558 [#23578] YSQL: Add HELP and TYPE to :13000/prometheus-metrics 3aa7459 [PLAT-15016] Handle gflag_group changes for ENHANCED_PG_COMPATIBILITY group in 2024.1.3 c89356c [PLAT-10592][YBA] Changes to support global tserver/master service in K8s 7fc3b76 [#3893] YCQL: Align 2 system_schema.* tables with Cassandra da6274e [23646] Test Stability: Fix PgMiniTest.FollowerReads 5fa6dc9 [PLAT-15180][Platform][UI][PITR]Create Restore Backup modal be0d1d1 [PLAT-15247][Platform][Backup]Create Backup scheduled policy List Test Plan: Jenkins: rebase: pg15-cherrypicks Reviewers: jason, tfoucher Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D37981
…ssandra Summary: Original diff: 7fc3b76 / D37909 Original fix: neonforge-forks@e775a10 The fix updates the schema for 2 virtual (always empty) YCQL tables: 1. Table `system_schema.functions`: - Added field `body` (type TEXT). - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - `argument_names` is now a FROZEN LIST of TEXT. 2. Table `system_schema.aggregates`: - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - Added field `return_type` (type TEXT). Jira: DB-4672 Test Plan: ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testSystemTableColumns ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testEmptySystemTables Reviewers: mihnea, stiwary, skumar Reviewed By: stiwary Subscribers: yql, ybase, smishra Differential Revision: https://phorge.dev.yugabyte.com/D37974
…andra Summary: Original diff: 7fc3b76 / D37909 Original fix: neonforge-forks@e775a10 The fix updates the schema for 2 virtual (always empty) YCQL tables: 1. Table `system_schema.functions`: - Added field `body` (type TEXT). - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - `argument_names` is now a FROZEN LIST of TEXT. 2. Table `system_schema.aggregates`: - `argument_types` is now a FROZEN LIST of TEXT. - Added `argument_types` to the primary key. - Added field `return_type` (type TEXT). Jira: DB-4672 Test Plan: ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testSystemTableColumns ./yb_build.sh --java-test org.yb.cql.TestSystemTables#testEmptySystemTables Reviewers: mihnea, stiwary, skumar Reviewed By: stiwary Subscribers: yql, ybase, smishra Differential Revision: https://phorge.dev.yugabyte.com/D37976
Jira Link: DB-4672
For migrating Cortex, https://github.com/yugabyte/cortex, a project which uses CQL and Cassandra 3.11, it expects the following layout of system_schema.functions:
From YBDB 2.1.1 instance:
The text was updated successfully, but these errors were encountered: