Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Creation of Join Table Fails #2

Open
agarturbo opened this issue Jun 25, 2021 · 0 comments
Open

Creation of Join Table Fails #2

agarturbo opened this issue Jun 25, 2021 · 0 comments

Comments

@agarturbo
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant