Any attempts to interact with the schema will throw an exception.
For example the historical map data type uses this as follows:
Map<ByteString,List<Struct>>historicalMap=resultSet.getMap("cf",SqlType.mapOf(SqlType.bytes(),SqlType.arrayOf(SqlType.struct())));Structstruct=historicalMap.get("column").get(0);// Struct schema will be validated here so there's no need for users to pass the schema to getMap aboveByteStringvalue=struct.getBytes("value");
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]