This is an automated email from the ASF dual-hosted git repository.
sarankk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-analytics.git
The following commit(s) were added to refs/heads/trunk by this push:
new 5efb86ca CASSANALYTICS-188: Expand list of architecture that supports
unaligned access in FastByteOperations (#229)
5efb86ca is described below
commit 5efb86cae4b9b8efaf7388c2e5097ee74face5d3
Author: Saranya Krishnakumar <[email protected]>
AuthorDate: Tue Aug 4 14:00:21 2026 -0700
CASSANALYTICS-188: Expand list of architecture that supports unaligned
access in FastByteOperations (#229)
Patch by Saranya Krishnakumar; Reviewed by Yifan Cai, Francisco Guerrero
for CASSANALYTICS-188
---
CHANGES.txt | 1 +
.../cassandra/spark/bulkwriter/util/FastByteOperations.java | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index a16f955e..3dcb7385 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,6 @@
0.5.0
-----
+ * Expand list of architecture that supports unaligned access in
FastByteOperations (CASSANALYTICS-188)
* Fix FastByteOperations Silently Falling Back to Pure-Java Comparator
(CASSANALYTICS-187)
* AbstractSchemaBuilder.build() drops the cdc flag, silently disabling CDC on
all tables (CASSANALYTICS-186)
* Fix total timeout calculation for getAllNodeSettings (CASSANALYTICS-179)
diff --git
a/cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/util/FastByteOperations.java
b/cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/util/FastByteOperations.java
index 3bae5dd6..ed899692 100644
---
a/cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/util/FastByteOperations.java
+++
b/cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/util/FastByteOperations.java
@@ -81,7 +81,15 @@ public final class FastByteOperations
static ByteOperations getBest()
{
String arch = System.getProperty("os.arch");
- boolean unaligned = arch.equals("i386") || arch.equals("x86") ||
arch.equals("x86_64") || arch.equals("amd64");
+ // Note that s390x, aarch64, & ppc64le architectures are not
officially supported and adding them here is only done out
+ // of convenience for those that want to run C* on these
architectures at their own risk (see #11214, #13326, & #13615)
+ boolean unaligned = arch.equals("i386")
+ || arch.equals("x86")
+ || arch.equals("x86_64")
+ || arch.equals("amd64")
+ || arch.equals("s390x")
+ || arch.equals("aarch64")
+ || arch.equals("ppc64le");
if (!unaligned)
{
return new PureJavaOperations();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]