cassandra/test/unit/org/apache/cassandra/cql3
Ata İlhan Köktürk 46b36f23cd
Explicitly localize strings to Locale.US for internal implementation
There is inconsistent usage of toLowerCase/toUpperCase methods in the codebase.
Somewhere we already use Locale.US, somewhere not. That might cause various issues in runtime
as shown in CASSANDRA-19953 ticket when an environment Cassandra runs in has different locale from expected.
In this patch, all such method calls explicitly set their locale to Locale.US. This patch also contains
a checkstyle rule which fails the compilation if toLowerCase or toUpperCase is used.
We prefer calls to methods in LocalizeString class which use US locale.

patch by Ata İlhan Köktürk; reviewed by Stefan Miklosovic, Brandon Williams for CASSANDRA-19953

Co-authored-by: Maxwell Guo <cclive1601@gmail.com>
Co-authored-by: Stefan Miklosovic <smiklosovic@apacheorg>
2024-10-29 08:58:01 +01:00
..
conditions Refactor ColumnCondition 2024-07-25 10:22:38 +02:00
functions Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
restrictions Add support for the BETWEEN operator in WHERE clauses 2024-06-06 17:55:08 +02:00
selection Simplify the bind marker and Term logic 2024-01-23 11:48:05 +01:00
statements Merge branch 'cassandra-5.0' into trunk 2024-05-31 11:33:43 +02:00
terms Simplify the bind marker and Term logic 2024-01-23 11:48:05 +01:00
validation Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
AlterSchemaStatementTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
AssignmentTestableTest.java Add support for CQL functions on collections, tuples and UDTs 2022-11-18 10:32:50 +00:00
BatchTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
CDCStatementTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
CIDRTest.java CIDR filtering authorizer 2023-07-28 20:10:02 -07:00
CQLTester.java Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
CQLTesterTest.java Unify CQLTester#waitForIndex and SAITester#waitForIndexQueryable 2023-07-26 13:35:07 -05:00
ColumnIdentifierTest.java Replace deprecated junit.framework.Assert usages with org.junit.Assert 2018-05-01 19:20:35 -07:00
CqlParserTest.java Reject multiple values for a key in CQL grammar. 2017-05-08 16:25:41 -04:00
CustomNowInSecondsTest.java Merge branch 'cassandra-5.0' into trunk 2024-05-31 11:33:43 +02:00
DecoratedKeyPrefixesTest.java Implementation of the trie-indexed SSTable format (BTI) as described in CEP-25. 2023-05-29 16:59:05 +03:00
DeleteTest.java
DistinctQueryPagingTest.java Merge branch 'cassandra-3.11' into trunk 2020-04-27 16:36:32 +01:00
DurationTest.java Allow to aggregate by time intervals 2022-04-22 10:59:42 +02:00
EmptyValuesTest.java Simplify the bind marker and Term logic 2024-01-23 11:48:05 +01:00
ErrorCollectorTest.java
GcCompactionTest.java Merge branch 'cassandra-4.1' into trunk 2023-07-04 13:48:38 +02:00
IndexQueryPagingTest.java Merge branch 'cassandra-3.0' into cassandra-3.11 2020-04-27 16:21:45 +01:00
KeyCacheCqlTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
KeywordSplit1Test.java Merge branch 'cassandra-4.0' into cassandra-4.1 2023-01-28 17:11:29 +01:00
KeywordSplitTest.java Merge branch 'cassandra-4.1' into trunk 2023-01-28 17:55:57 +01:00
KeywordTestBase.java Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
NodeLocalConsistencyTest.java Queries performed with NODE_LOCAL consistency level do not update request metrics 2021-11-12 11:26:18 +00:00
NonNativeTimestampTest.java Remove all usages of junit.framework and ban them via Checkstyle 2022-03-11 12:32:04 -06:00
OutOfSpaceTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
PagingQueryTest.java
PagingTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
PasswordObfuscatorTest.java Pre hashed passwords in CQL 2022-03-23 07:20:14 +01:00
PreparedStatementsTest.java Warn about unqualified prepared statement only if it is select or modification statement 2024-08-08 14:18:24 +02:00
PstmtPersistenceTest.java Ninja remove unused imports 2024-06-04 08:26:10 -05:00
QueryEventsTest.java Fix issues in audit / full query log interactions 2020-04-16 14:19:54 +02:00
QueryWithIndexedSSTableTest.java Implementation of the trie-indexed SSTable format (BTI) as described in CEP-25. 2023-05-29 16:59:05 +03:00
RandomSchemaTest.java Expand DDL statements on coordinator before submission to the CMS 2024-05-23 15:40:28 +01:00
RelationTest.java Refactor ColumnCondition 2024-07-25 10:22:38 +02:00
ReservedKeywordsTest.java Make cqlsh use the same set of reserved keywords than the server uses 2021-07-13 11:45:25 +01:00
SecondaryIndexSSTableExportTest.java Fix SSTabledump errors when dumping data from index 2023-06-19 13:22:48 +01:00
SerializationMirrorTest.java Replace deprecated junit.framework.Assert usages with org.junit.Assert 2018-05-01 19:20:35 -07:00
SimpleQueryTest.java Merge branch 'cassandra-3.11' into trunk 2017-12-08 09:06:05 +11:00
SystemKeyspaceQueryTest.java Support querying LocalStrategy tables with any partitioner 2024-06-12 15:29:09 +01:00
SystemKeyspaceTablesNamesTest.java Disable the deprecated keyspace/table thresholds and convert them to guardrails 2023-07-14 12:23:04 +01:00
TombstonesWithIndexedSSTableTest.java Implementation of the trie-indexed SSTable format (BTI) as described in CEP-25. 2023-05-29 16:59:05 +03:00
TraceCqlTest.java Fix rendering UNSET collection types in query tracing 2024-08-30 10:41:38 +02:00
ViewAbstractParameterizedTest.java Fix incorrect seeking through the sstable iterator by IndexState 2023-11-09 16:08:59 +01:00
ViewAbstractTest.java Add MV utilities to CQLTester 2021-11-10 12:34:03 +00:00
ViewComplexDeletionsPartialTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexDeletionsTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexLivenessLimitTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexLivenessTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexTTLTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexTombstoneTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewComplexUpdatesTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewFiltering1Test.java Moved system properties and envs to CassandraRelevantProperties and CassandraRelevantEnv respectively 2023-05-11 07:39:16 +02:00
ViewFiltering2Test.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewFilteringClustering1Test.java Merge branch 'cassandra-4.0' into trunk 2021-11-26 07:18:07 +01:00
ViewFilteringClustering2Test.java Merge branch 'cassandra-4.0' into trunk 2021-11-26 07:18:07 +01:00
ViewFilteringComplexPKTest.java Merge branch 'cassandra-4.0' into trunk 2021-11-26 07:18:07 +01:00
ViewFilteringSimplePKTest.java Merge branch 'cassandra-4.0' into trunk 2021-11-26 07:18:07 +01:00
ViewPKTest.java Use snake case for the names of CQL native functions 2023-04-04 15:01:34 +01:00
ViewRangesTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00
ViewSchemaTest.java Use snake case for the names of CQL native functions 2023-04-04 15:01:34 +01:00
ViewTest.java Implementation of Transactional Cluster Metadata as described in CEP-21 2023-11-24 10:26:08 +00:00
ViewTimesTest.java Add memtable API (CEP-11) 2022-04-29 14:56:20 +03:00