Comments (1)
Hi, you've stumbled into an oddity of the existing BigQuery SQL dialect. Try:
SELECT
doctor.dr_id AS doctor_dr_id,
FROM [rsdw.doctor] doctor
WHERE
doctor.is_published
AND doctor.specialties.specialty = 'Plastic Surgeon'
LIMIT 500
The sub-select `(SELECT * FROM rsdw.doctor)` is evaluated in a way that makes
the other repeated fields visible at top-scope, even if not included in the
query results. You can either remove the SELECT * sub-select as in my example,
or explicitly sub-select the fields you desire from the underlying table.
Also note that we're working on an improved SQL dialect that will better handle
"pushing down" the outer-selected fields into the inner sub-select, see issue
448. I'll close this as "WontFix", but we'll improve the behavior soon.
Original comment by [email protected]
on 8 Apr 2016 at 3:42
- Changed state: WontFix
from google-bigquery.
Related Issues (20)
- Single precision float storage option HOT 1
- Any plan to move to more modern issue tracking system? HOT 1
- BigQuery takes more than 5 minutes to process query with string matching and aggregations HOT 1
- BigQuery UI enhancements HOT 2
- data load with fieldDelimiter "%00" HOT 2
- count(*) behaves unpredictably with repeated fields HOT 1
- Ignore case not working in views HOT 4
- bq command line crash requested issue submission HOT 3
- DATEDIFF always returns null if using a date field that is the result of a LAG window function in a subquery / view HOT 1
- Loading csv file to bigquery failed HOT 1
- have ROUND(), FLOOR() and CEIL() return INTEGER type HOT 1
- Unable to copy federated tables HOT 2
- BigQuery UI do not update properly the tables list on "Refresh" action HOT 1
- Table details doesn't get updated when the table is modified HOT 2
- Cannot access shared dataset when using the python client api HOT 2
- billingTierLimitExceeded appears for Load job HOT 6
- Data Duplication on Load HOT 14
- Error running query
- An internal error occurred and the request could not be completed. Error: 3144498
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-bigquery.