Examples of usesScript()


Examples of org.apache.hadoop.hive.ql.QueryProperties.usesScript()

      console.printError("Has Join: " + queryProps.hasJoin());
      console.printError("Has Group By: " + queryProps.hasGroupBy());
      console.printError("Has Sort By: " + queryProps.hasSortBy());
      console.printError("Has Order By: " + queryProps.hasOrderBy());
      console.printError("Has Group By After Join: " + queryProps.hasJoinFollowedByGroupBy());
      console.printError("Uses Script: " + queryProps.usesScript());
      console.printError("Has Distribute By: " + queryProps.hasDistributeBy());
      console.printError("Has Cluster By: " + queryProps.hasClusterBy());
    }
  }
}
View Full Code Here

Examples of org.apache.hadoop.hive.ql.QueryProperties.usesScript()

  public void run(HookContext hookContext) throws Exception {
    QueryProperties qProps = hookContext.getQueryPlan().getQueryProperties();
    if (null == qProps) {
      return; // its a ddl query.
    }
    if (qProps.usesScript()) {
       throw new HiveAccessControlException("Query with transform clause is disallowed in"
           + " current configuration.");
    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.