apurtell opened a new pull request, #2724: URL: https://github.com/apache/phoenix/pull/2724
`CREATE INDEX ... WHERE` fails at random with ERROR 602 when the table has a character array column. The probe upsert uses a random sample element. When that element is a backslash, the lexer reads the closing quote as escaped, so the literal does not close. The root cause is general. The string constant escape doubles quotes but not backslashes, so generated SQL text does not always parse back to the same value. The escape now doubles both. Functional index expressions get one escape, not two, so index builds match index maintenance. String literal normalization returns the parsed value. SHOW TABLES and SHOW SCHEMAS escape their patterns. The probe uses a fixed element. Users now see doubled backslashes in the string form of character arrays, in EXPLAIN text and in new column defaults. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
