Comments (4)
Could you share a little additional information:
- the structure of your appengine entity (specifically how it is declared in
your code)
- the job id of the import
The current implementation turns appengine entities into bigquery nested
records so if your entity really is:
[ { name, time, error } ]
then you should get a nested record and not a 3 top level list fields:
[ name ]
[ time ]
[ error ]
however this depends on how the top level entity is constructed in appengine
and that is why I am asking for your appengine entity declaration.
Original comment by [email protected]
on 26 Jul 2013 at 5:03
from google-bigquery.
Glad to provide more info.
Job IDs for upload (from python 2.7 and 2.5 respectively):
job_b83f91fb3fd94a2fbc7767699e253854
job_d63291113ca240dc95f3a58be66bd504
Test data creation code:
from datetime import datetime
from google.appengine.ext.ndb.model import Model, StringProperty,
StructuredProperty, IntegerProperty, DateTimeProperty
class Event(Model):
eventType = StringProperty()
eventTime = IntegerProperty()
eventError = StringProperty()
class Session(Model):
sessionID = StringProperty()
startTime = DateTimeProperty()
events = StructuredProperty(modelclass=Event, repeated=True)
class BQTestHandler(webapp.RequestHandler):
def get(self):
event1 = Event(eventType='A', eventTime=1)
event2 = Event(eventType='B', eventTime=7, eventError='Null Pointer')
event3 = Event(eventType='A', eventTime=12)
session = Session(sessionID='23432', startTime=datetime.now(), events=[event1, event2, event3])
session.put()
Original comment by [email protected]
on 26 Jul 2013 at 6:55
from google-bigquery.
So the mismatch here is due to how StructureProperty lays out the data:
https://developers.google.com/appengine/docs/python/ndb/properties#structured
That doc explains that it lays it out as an array of repeated fields. It also
calls out the restriction that a repeated structured property cannot contain
another repeated structured property / field. Which is a result of this layout.
I don't yet have a solution for you but I am investing LocalStructuredProperty
and its behavior. Also, I am investigating the underlying db.Model library and
checking if it has a way of expressing structured properties. I will update you
once I know more.
Original comment by [email protected]
on 26 Jul 2013 at 9:03
from google-bigquery.
It looks like this issue is quite old, and the engineer who was working on it
has left the company.
Resolving due to lack of activity; please re-open if this is still an issue for
you.
Original comment by [email protected]
on 22 Aug 2014 at 5:45
- 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
- BigQuery mistakenly flattens on nested field when it's not referenced HOT 1
- 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.