sql/src/test/java/org/apache/druid/sql/calcite/BaseCalciteQueryTest.java
/**
   * Override not just the outer query context, but also the contexts of all subqueries.
   */
Override not just the outer query context, but also the contexts of all subqueries.
Override not just the outer query context but also the contexts of all subqueries .
public static <T> Query<T> recursivelyOverrideContext(final Query<T> query, final Map<String, Object> context)
  {
    return query.withDataSource(recursivelyOverrideContext(query.getDataSource(), context))
                .withOverriddenContext(context);
  }
public static < T > Query < T > recursivelyOverrideContext ( final Query < T > query , final Map < String , Object > context ) { return query . withDataSource ( recursivelyOverrideContext ( query . getDataSource ( ) , context ) ) . withOverriddenContext ( context ) ; }
Override not just the outer query context, but also the contexts of all subqueries.
Override not just the outer query context but also the contexts of all subqueries .