You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
AVG(DATE_PART('day', opp.last_advanced_at::timestamp - p.created_at::timestamp)) AS average_days_to_hire
FROM
postings AS p
LEFT JOIN
opportunities AS opp
ON
opp.opportunity_id = p.posting_id
WHERE
p.description LIKE '%Engineering Manager%'
AND
p.created_at >= now() - INTERVAL '1 year'
AND
opp.is_hired = true
Traceback (most recent call last):
File "/Users/devonwinrick/dev/heimdallm/venv/lib/python3.11/site-packages/lark/visitors.py", line 124, in _call_userfunc
return f(children)
^^^^^^^^^^^
File "/Users/devonwinrick/dev/heimdallm/venv/lib/python3.11/site-packages/heimdallm/bifrosts/sql/visitors/ambiguity.py", line 67, in _ambig
pruned_trees = [tree for i, tree in enumerate(trees) if test_tree(i, tree)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/devonwinrick/dev/heimdallm/venv/lib/python3.11/site-packages/heimdallm/bifrosts/sql/visitors/ambiguity.py", line 67, in <listcomp>
pruned_trees = [tree for i, tree in enumerate(trees) if test_tree(i, tree)]
^^^^^^^^^^^^^^^^^^
File "/Users/devonwinrick/dev/heimdallm/venv/lib/python3.11/site-packages/heimdallm/bifrosts/sql/visitors/ambiguity.py", line 62, in test_tree
self.test_alias(i, tree, trees)
File "/Users/devonwinrick/dev/heimdallm/venv/lib/python3.11/site-packages/heimdallm/bifrosts/sql/visitors/ambiguity.py", line 34, in test_alias
for alias_node in tree.find_data("generic_alias"):
^^^^^^^^^^^^^^
AttributeError: 'Token' object has no attribute 'find_data'
Ok you should be set with version 1.0.3. There is an issue with your particular query however, and that is that we block all joins except inner equi joins, so the "left join" in your query is blocked as an outer join. You can read more about this decision here https://docs.heimdallm.ai/en/main/attack-surface/sql.html#outer-joins
Query:
Validator:
The text was updated successfully, but these errors were encountered: