MCPcopy Create free account
hub / github.com/apache/impala / validate

Method validate

fe/src/main/java/org/apache/impala/catalog/Table.java:685–692  ·  view source on GitHub ↗

Checks preconditions for this table to function as expected. Currently only checks that all entries in colsByName_ use lower case keys.

()

Source from the content-addressed store, hash-verified

683 * that all entries in colsByName_ use lower case keys.
684 */
685 public void validate() throws TableLoadingException {
686 for (String colName: colsByName_.keySet()) {
687 if (!colName.equals(colName.toLowerCase())) {
688 throw new TableLoadingException(
689 "Expected lower case column name but found: " + colName);
690 }
691 }
692 }
693
694 /**
695 * Must be called with 'tableLock_' held to protect against concurrent modifications

Callers 2

fromThriftMethod · 0.95
loadMethod · 0.95

Calls 2

keySetMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected