protected static String filterBomHeader(String s) {
    byte[] bom = {(byte) 0xEF, (byte) 0xBB, (byte) 0xBF};
    byte[] bytes = Arrays.copyOf(s.getBytes(), 3);
    if (Arrays.equals(bom, bytes)) {
      return s.substring(1);
    }
    return s;
  }
query data type of timeseries from IoTDB

@param deviceNames
@param headerTypeMap
@param alignedType
@throws IoTDBConnectionException
@throws StatementExecutionException
iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/AbstractDataTool.java