Skip to content

AttributeError: 'NoneType' object has no attribute 'value' when parsing a relatively simple inner query #377

@dangoldin

Description

@dangoldin

This feels as if it should work but failing. I'll try to look into it but thought I'd bring it up in case it's an easy fix.

SELECT max(dt) FROM
        (
         SELECT max(dt) as dt FROM t      
      UNION ALL
          SELECT max(dt) as dt FROM t2
        )

This query also fails so I wonder if it has to do with that specific query construction:

SELECT max(dt) FROM
        (
         SELECT max(dt) as dt FROM t      
        )

This is also failing

SELECT max(dt) FROM
        (
         SELECT dt  FROM t      
        )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions