[
https://issues.apache.org/jira/browse/PHOENIX-3107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Taylor resolved PHOENIX-3107.
-----------------------------------
Resolution: Invalid
It's not valid to enter nothing between the commas. For example, this is *not*
valid:
{code}
UPSERT INTO T(a,b,c) VALUES('foo',,'bar')
{code}
Instead, use NULL if you don't have a value, like this:
{code}
UPSERT INTO T(a,b,c) VALUES('foo',NULL,'bar')
{code}
Any column that is not listed in the list is assumed to be null.
> upsert null or space into field
> -------------------------------
>
> Key: PHOENIX-3107
> URL: https://issues.apache.org/jira/browse/PHOENIX-3107
> Project: Phoenix
> Issue Type: New Feature
> Reporter: qinzl
>
> when upsert into table ,if some field is null or space will throw
> ERROR 604 (42P00): Syntax error. Mismatched input. Expecting "LPAREN", got
> ","
> look like:
> upsert into qding_passport.user_integral_detail
> values('ff8080814fb690fc014fb69e67640965',
> '277ce5fee42a494f9148e1cdcfa90439', 1, 1000, 1000, 'init', 'init', '初始积分', ,
> , '', , NULL, , NULL, , '初始77878628, 'M', , , , 0, , , , );
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)