Skip to content

Table aliases not supported? #28

Open

Description

@tuulos

Are table aliases like a in FROM some_table a supported?

For example

> demoAllAnalyses "select a.x from some_table a"
Tables accessed:
    public.some_table
Columns accessed by clause:
    <unknown>.a.x       SELECT
Joins:
    no joins
Table lineage:
    no tables modified

In this case, is it possible to resolve <unknown> to some_table?

Activity

  1. h4v0kh3l1 commented on Mar 13, 2018

    @h4v0kh3l1
    Contributor

    Hey @tuulos ,

    Yes, we intend to support resolving aliases in column access, we have table alias resolution but it looks like this particular case slipped under the radar.

    This example provided will have different behavior, since some_table doesn't exist in the catalog, and the resolve step reverts to defaulting. However, if you swap in foo, which is defined in the demo catalog, you'll get the same behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions