Welll, import transform helps me in uploading the data as integers.

I'd like to know how to specify the list type if my csv file has list.

Will the following line be correct for uploading the list?

import_transform : transform.none_if_empty(list)

Thanks,
Deepika



On Wed, Aug 4, 2010 at 3:20 PM, Deepika M <drift2elys...@gmail.com> wrote:

> Hi Ikai,
>
> Yes, you're right. It is uploaded as String.
>
> Is it the property of the bulkloader to upload the data as String or have I
> done something wrong because I have declared the source and destination as
> integers?
>
> Also, I haven't specified any import_transform or export_transform in my
> bulkloader configuration file.
>
> Thanks,
> Deepika
>
>
>
> On Tue, Aug 3, 2010 at 6:00 PM, Ikai L (Google) <ika...@google.com> wrote:
>
>> It may have been uploaded as a string. Does the datastore viewer state
>> that it is a String or Long? Try "1" in your query.
>>
>> On Wed, Jul 28, 2010 at 2:11 PM, Deepika M <drift2elys...@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> I am trying to use the bulk loader to upload information about edges for
>>> Java app engine.
>>>
>>>
>>> I have an Edge entity and it has the source (int), destination (int) and
>>> graph_id (long) as its attributes.
>>>
>>>
>>> And the csv file contains sample data like this
>>>
>>> source,graphId,destination
>>> 1,1,1
>>> 2,2,2
>>> 1,2,4
>>> 7,1,5
>>> 1,2,1
>>>
>>> I am able to upload the contents of this csv file to the datastore and
>>> even able to view it in the datastore viewer.
>>>
>>> But when I do a JPQL query on the data like
>>>
>>>  Query query = em.createQuery("SELECT x FROM Edges x WHERE x.graphId=1");
>>>
>>> I get the result size as 0 and I am not able to retrieve the data from
>>> the datastore using JPQL query.
>>>
>>> Any help is appreciated.
>>>
>>> Thanks,
>>> Deepika
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>
>>
>> --
>> Ikai Lan
>> Developer Programs Engineer, Google App Engine
>> Blog: http://googleappengine.blogspot.com
>> Twitter: http://twitter.com/app_engine
>> Reddit: http://www.reddit.com/r/appengine
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to