Skip to content
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

Full text search failing update with counts #194

Open
comebackoneyear opened this issue Nov 20, 2024 · 1 comment
Open

Full text search failing update with counts #194

comebackoneyear opened this issue Nov 20, 2024 · 1 comment

Comments

@comebackoneyear
Copy link

I'm using the latest 1.5.25 version and I get the following error with this setup:

CREATE TABLE T (
  Id STRING(20),
  Text STRING(MAX),
  Text_Tokens TOKENLIST AS (TOKENIZE_FULLTEXT(Text)) HIDDEN,
) PRIMARY KEY(Id);


CREATE TABLE C (
  Id STRING(20),
  count INT64
) PRIMARY KEY(Id);

INSERT INTO T (id, text) VALUES ('1', 'Hello, World!');

INSERT INTO C (id, count) VALUES ('1',0);

The following statement

UPDATE C set count=(SELECT count(*) from T) WHERE id='1';

errors with

ERROR: spanner: code = "Internal", desc = "ZETASQL_RET_CHECK failure (external/com_google_zetasql/zetasql/analyzer/resolver_dml.cc:2348) column_index >= 0 (-1 vs. 0) "`
@silas
Copy link

silas commented Nov 20, 2024

Similar issues: #171, #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants