我们如何在 apache drill 上执行递归查询

How do we perform recursive query on apache drill

在 apache drill 中,我们如何使用带有子句的 CTE 执行递归查询?

A​​pache Drill 不支持递归查询。 Usage Notes 部分:

Drill can only reference a table defined by a WITH clause subquery in the scope of the SELECT query that the WITH clause begins. For example, you can reference such a table in the FROM clause of a subquery in the SELECT list, WHERE clause, or HAVING clause. You cannot use a WITH clause in a subquery and reference its table in the FROM clause of the main query or another subquery.

尝试不使用递归重写您的查询。还有一个关于 dev mailing list 的讨论,它可能有有用的建议或解决方法。