public Optional<String> getDatabaseName() {
    return session.getDatabaseName();
  }
This method does not require concurrency control because the query plan is generated in a
single-threaded manner.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/MPPQueryContext.java