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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:55:44+00:00 2026-06-07T10:55:44+00:00

Im using Google BigQuery and have a questions of the POSITION(field) function that it

  • 0

Im using Google BigQuery and have a questions of the POSITION(field) function that it provides.

I thought the POSITION function returns a position of the value in query within the nested field.

But i’m quite surprised that it also works on non-nested fields.

eg.

SELECT url, POSITION(url) FROM [publicdata:samples.github_timeline] WHERE url="https://github.com/oscardelben/sheet";

and the output is

Row  url                                 f0_
1  https://github.com/oscardelben/sheet  1
2  https://github.com/oscardelben/sheet  2
3  https://github.com/oscardelben/sheet  3
4  https://github.com/oscardelben/sheet  4
5  https://github.com/oscardelben/sheet  5
6  https://github.com/oscardelben/sheet  6
7  https://github.com/oscardelben/sheet  1
8  https://github.com/oscardelben/sheet  2
9  https://github.com/oscardelben/sheet  3
....
...
..
.

in this context, what does POSITION(url) mean?
also are there any nested field provided by the Google BigQuery samples that I can test with?

I appreciate yo

  • 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-07T10:55:45+00:00Added an answer on June 7, 2026 at 10:55 am

    From what I can tell, for a non-nested field, POSITION will return the row offset in the data shard — that is, if the underlying data is split into 100 pieces, and your result has 10 rows per each piece, you would have position values of 1-10 repeated 100 times. This is unlikely to be particularly useful. Arguably, this should return the global position (that is, it would return 1-1000 in the above case), and if you agree, let me know and I’ll see if it can be changed.

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

Sidebar

Related Questions

I'm using Google App Engine and Django templates. I have a table that I
I'm using Google's ruby api client to talk to big query and I have
I'm using Google BigQuery and it provides few public sample tables. One of them
I am using google apps , and google is handling my email. I have
Using Google's mail I have programmatic access to all sorts of settings via the
Using Google Checkout, I'm able to estimate tax based on the zip code that's
Im using google chrome and i want that profile text with the background to
Using Google App Engine and Django. Whenever I have a db.ReferenceProperty() inside a model
By using Google I have found some nice snippets of example code for using
Using Google Maps, I am trying to have an info window open with tabs

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.