Skip to content

Creation of Join Table Fails #2

Description

@agarturbo

The statement:

        CREATE TABLE {table_name}
        WITH (format='PARQUET') AS
        SELECT
          table1.key AS table1_key, table2.key AS table2_key
        FROM
          {self.left_inventory.table_name} table1
        {join_type} JOIN
          {self.right_inventory.table_name} table2
        USING {key)

fails with the error that table1.key could not be identified. Potentially an Athena Engine 2 issue. However, changing the query to:

        CREATE TABLE {table_name}
        WITH (format='PARQUET') AS
        SELECT
          table1.key AS table1_key, table2.key AS table2_key
        FROM
          {self.left_inventory.table_name} table1
        {join_type} JOIN
          {self.right_inventory.table_name} table2
        ON table1.key = table2.key

worked.

Activity

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