Project: springxd
Issue XD-3012:  gemfire-json-server multiple PdxTypes Types
I am using SpringXD to ingest tweets to a gemfire-json-server sink. I am running into an issue where the json documents get defined as a pdx type twice. See the reweet_count field below. This causes problems later when using OQL to access this data. Incompatible types. What are the recommended ways to resolve this? The field type should account for the largest possible value, which is unknown because it is twitter. This would likely be a int or long. I was asked to log this as a SXD JIRA issue, but I am not sure if the problem is in SXD or GemFire. [info 2015/04/25 06:51:28.767 CST tid=0x53] Defining: PdxType[ dsid=0typenum=1, name=__GEMFIRE_JSON, fields=[ id:String:0:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=-1 from_user:String:1:1:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=1 created_at:String:2:2:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=2 text:String:3:3:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=3 language_code:String:4:4:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=4 retweet_count:short:5:4:idx0(relativeOffset)=-3:idx1(vlfOffsetIndex)=-1 retweet:boolean:6:4:idx0(relativeOffset)=-1:idx1(vlfOffsetIndex)=-1]] [info 2015/04/25 06:51:29.307 CST tid=0x53] Defining: PdxType[ dsid=0typenum=2, name=__GEMFIRE_JSON, fields=[ id:String:0:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=-1 from_user:String:1:1:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=1 created_at:String:2:2:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=2 text:String:3:3:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=3 language_code:String:4:4:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=4 retweet_count:byte:5:4:idx0(relativeOffset)=-2:idx1(vlfOffsetIndex)=-1 retweet:boolean:6:4:idx0(relativeOffset)=-1:idx1(vlfOffsetIndex)=-1]]
Story points: 3