-
Notifications
You must be signed in to change notification settings - Fork 227
Master apache #719
base: master-Apache
Are you sure you want to change the base?
Master apache #719
Conversation
This reverts commit ceaaecc.
…into master-Apache
{ | ||
if(lsq != null) | ||
{ | ||
throwRecognitionException(lsq); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is always an error, then we wouldn't want it in the syntax, but I'm actually capturing this information now and storing it in an ARRAY_SIZE key value column on the column metadata row. We're not using it, but we should use it down the road.
With our dynamic column feature, you can define a column at upsert time and populate it. This would include arrays. I think for arrays, you should never have a null dt. I think it's just a matter of not having both the dt part and the array brackets be optional - instead the whole thing should be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So for now I will revert this change? I was just wondering how that
bq.(lsq=LSQUARE (a=NUMBER)? RSQUARE)?
was added. I was thinking I added that in my previous commit. So you don't want that to be solved in the syntax level? Ok will see then what to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you switch to the Apache git repo as the github repo is no longer
being used - your on the phoenix dev list, right and have been getting my
mail? If not please join here:
http://phoenix.incubator.apache.org/mailing_list.html
Get the latest from the Apache git repo and you'll see my fix - it was just
modifying the syntax slightly.
For PDataType.getByteSize() should return null if the type doesn't know how
big it is, which is fine for arrays. For the Expression (i.e. this would be
a KeyValueColumnExpression specifically), the getByteSize() has all the
information it needs to calculate the size correctly.
@ramkrish86 - I fixed this in the master branch in our Apache git (I'd point you to the commit, but our github mirrors aren't up yet). If you could take a look at the following, that would be good:
|
Changes for throwing exception for queries with upsert select with specific index.
Tries not to set the maxlength in column def for array type as we don't really know the actual maxlength for arrays during definition.