[
https://issues.apache.org/jira/browse/PHOENIX-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191300#comment-15191300
]
Kaide Mu commented on PHOENIX-2231:
-----------------------------------
Hi, [~rajeshbabu]. I did the following "SqlCreateSequence" but I don't know if
I did it correctly or I'm missing things, would you mind take a look when you
have any time? Also, could you explain to me how "unparse" works?
{code:title=SqlCreateSequence.java}
public SqlCreateSequence(SqlParserPos pos,
SqlIdentifier name,
SqlNode startWith,
SqlNode incrementBy,
SqlNode cacheSize,
SqlNode minValue,
SqlNode maxValue,
SqlNode cycle,
SqlNode ifNotExists) {
super(pos);
this.name = name;
this.startWith = startWith;
this.incrementBy = incrementBy;
this.cacheSize = cacheSize;
this.minValue = minValue;
this.maxValue = maxValue;
this.cycle = cycle;
this.ifNotExists = ifNotExists;
}
public SqlOperator getOperator() {
return OPERATOR;
}
public List<SqlNode> getOperandList() {
return ImmutableList.of(name, startWith, incrementBy, cacheSize,
minValue, maxValue, cycle, ifNotExists);
}
@Override
public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {
}
}
{code}
> Support CREATE SEQUENCE in Phoenix/Calcite Integration
> ------------------------------------------------------
>
> Key: PHOENIX-2231
> URL: https://issues.apache.org/jira/browse/PHOENIX-2231
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Maryann Xue
> Labels: calcite
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)