Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:26:55+00:00 2026-06-09T05:26:55+00:00

I am trying to join 2 tables, each with 57,191 rows. BigQ is looking

  • 0

I am trying to join 2 tables, each with 57,191 rows. BigQ is looking for a larger table on the inner/left and smaller on the right. When I run it with Table B on the left, it errors as ‘The large table A must appear first’. When I switch the query and put Table A in the From clause, it errors as ‘The large table B must appear first’. So when I do as it instructs, it does not fix it but suggests my first (incorrect) attempt, unless I am somehow botching it.

It is a bit ironic that if the 2 tables are the same size it decides one is larger based on, presumably, that one is not smaller than the other. I am trying to find a solution which does not include me adding a meaningless row to 1 of the tables and then trying to delete it after the join works, (since BigQ is not loading my single row csv file right now, I am sure it’s due to my error.)

The Google SQL syntax join rule seems to be

“join_type
Bigquery supports INNER (the default) and LEFT OUTER joins.
table_2
This is the second table in the join, which must be small, and will be joined to the table appearing in the FROM clause. Note that this can be either a table name or another SELECT clause, in which case you must provide an alias.
join_condition_1, …, join_condition_N, …
The set of join conditions, which must be a collection of equality conditions, all of which must be met for a row to be included in the result. (That is, we only support connecting these conditions with AND.) “

The actual SQL I am running is

SELECT lt.activeprosperloans,[fieldsredacted], ...
FROM prosperloans1.listings2 AS lt
JOIN prosperloans1.zjoinedperfloans as ln
ON lt.key = listingkey;

and the actual error reads:
Error: Large table prosperloans1.zjoinedperfloans must appear as the leftmost table in a join query

Thanks
Shawn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:26:56+00:00Added an answer on June 9, 2026 at 5:26 am

    Since this question was answered, BigQuery added JOIN EACH, which is a way to join two large tables. See Fh’s answer for instructions on how to use JOIN EACH.

    The rest of this response is for historical purposes:
    A large table (for the purpose of join) is anything over 7 MB. In order to do a join, the entire small table is sent to every node in the cluster, so we place a pretty significant limit on it. It may be that despite both being the same number of rows, the one table is larger than 7 MB while the other is smaller.

    One way to reduce the size of one of the tables is to apply filters and column filters in a query and save the result as another temporary table, then apply the JOIN to the temporary table. E.g. if you have 10 columns in a table that spans a month worth of data but you only need 3 columns for the join query and the last day’s data, you can first just select the three columns and the recent data, and give the result a name. Then you can do the join against that table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to LEFT JOIN two tables, to get a list of all rows
I am trying to compare two tables to find rows in each table that
I am trying to join 3 tables to access data from each table. The
I am trying to join two tables. One being the sys.databases table and the
I have a MySQL Left Join problem. I have three tables which I'm trying
Im having issues trying to join a table twice. I have 3 tables: Users,
Im trying to JOIN 2 tables and count the results. I have these tables;
I'm trying to join multiple tables together for building a report. The report lists
I am trying to join two tables; the purpose being able to search and
I have been trying to join two tables (USERS AND USERS_ROLES) based on their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.