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 8972253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:10:25+00:00 2026-06-15T18:10:25+00:00

I am getting an internalError when running a query that joins two subselects. The

  • 0

I am getting an internalError when running a query that joins two subselects. The query looks like this:

SELECT data_table.title AS name
FROM
  ( 
    SELECT id, title
    FROM
    [citrius-altrius-fortius:analyze.topic_735_1354233600], [citrius-altrius-fortius:analyze.topic_735_1354320000]
  ) AS  data_table
  INNER JOIN
  ( 
    SELECT id FROM
    [citrius-altrius-fortius:analyze.topic_735_1354233600], [citrius-altrius-fortius:analyze.topic_735_1354320000]
    WHERE
    UPPER(title) CONTAINS ("BUDGET")
  ) AS filter_table
ON data_table.id == filter_table.id

this is the reply I get:

{
  "status": {
    "state": "DONE", 
    "errors": [
      {
        "reason": "internalError", 
        "message": "Unexpected. Please try again."
      }
    ], 
    "errorResult": {
      "reason": "internalError", 
      "message": "Unexpected. Please try again."
    }
  }, 
  "kind": "bigquery#job", 
  "statistics": {
    "endTime": "1354849344685", 
    "startTime": "1354849344148"
  }, 
  "jobReference": {
    "projectId": "citrius-altrius-fortius", 
    "jobId": "job_e870b1fe67b94897a157dfa4f60b9725"
  }, 
  "etag": "\"OLvSfkwPDZ7M36YVEFvi-PBaFQM/SnvQhZKTutJxTY1bJLqqdphkA00\"", 
  "configuration": {
    "query": {
      "createDisposition": "CREATE_IF_NEEDED", 
      "query": "SELECT data_table.title AS name\nFROM\n  ( \n    SELECT id, title\n    FROM\n    [citrius-altrius-fortius:analyze.topic_735_1354233600], [citrius-altrius-fortius:analyze.topic_735_1354320000]\n  ) AS  data_table\n  INNER JOIN\n  ( \n    SELECT id FROM\n    [citrius-altrius-fortius:analyze.topic_735_1354233600], [citrius-altrius-fortius:analyze.topic_735_1354320000]\n    WHERE\n    UPPER(title) CONTAINS (\"BUDGET\") LIMIT 1000\n  ) AS filter_table\nON data_table.id == filter_table.id\n;", 
      "destinationTable": {
        "projectId": "citrius-altrius-fortius", 
        "tableId": "anonba898655_04dc_4d8d_8c29_673a36ba4c9f", 
        "datasetId": "_6fff29df40f86299d525686858be44df27c8dfd0"
      }
    }
  }, 
  "id": "citrius-altrius-fortius:job_e870b1fe67b94897a157dfa4f60b9725", 
  "selfLink": "https://www.googleapis.com/bigquery/v2/projects/citrius-altrius-fortius/jobs/job_e870b1fe67b94897a157dfa4f60b9725"
}

title and id are plain string columns (non-repeating). Both tables are fairly small in size (adding limit 1000 on the right side of the join does not change anything). When however, I alter the query to use just one table:

SELECT data_table.title AS name
FROM
  ( 
    SELECT id, title
    FROM
    [citrius-altrius-fortius:analyze.topic_735_1354233600]
  ) AS  data_table
  INNER JOIN
  ( 
    SELECT id FROM
    [citrius-altrius-fortius:analyze.topic_735_1354233600]
    WHERE
    UPPER(title) CONTAINS ("BUDGET") LIMIT 1000
  ) AS filter_table
ON data_table.id == filter_table.id

it works every time.
What would be the proper way of joining two subselects where they (subselects) are selecting from multiple tables?

  • 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-15T18:10:27+00:00Added an answer on June 15, 2026 at 6:10 pm

    You’re hitting a known bug doing a table union in a join:
    BigQuery – UNION on left side of JOIN == Unexpected. Please try again

    We’re actively working on a fix.

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

Sidebar

Related Questions

Getting red warning message that expected identifier for this statement CALayer = ImageView.layer; Using
Getting this weird LINQ error. title = System.Linq.Enumerable+WhereSelectEnumerableIterator`2[System.Xml.Linq.XElement,System.String Here is the code I have:
Getting this error when I follow the simple code example from jsoncpp, that basically
Getting message expected identifier in red for below these two statements } else if
Getting this out of the way; I don't frequently do much in php or
This is my JSP page's taglib directive: <%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c %> I'm getting
I'm consistently getting this result back from BigQuery: { error: { errors: [ {
I am getting following error while executing my java code. What is this error
I am running this command on a table : ALTER TABLE testTable ADD column1
I want to dynamically add ranges to a new EmbeddedChartBuilder but I'm getting this

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.