I dont have a code snippet for composite key, but you can encode each field in the composite key and then do an array concatenation. http://stackoverflow.com/questions/80476/how-can-i-concatenate-two-arrays-in-java
-- View this message in context: http://apache-phoenix-user-list.1124778.n5.nabble.com/ERROR-201-22000-illegal-data-error-expected-length-at-least-4-but-had-tp2170p2249.html Sent from the Apache Phoenix User List mailing list archive at Nabble.com.