Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/127#discussion_r44848578
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java ---
@@ -323,7 +324,8 @@ public MutationPlan compile(DeleteStatement delete)
throws SQLException {
// - read-only VIEW
// - transactional table with a connection having an SCN
// TODO: SchemaUtil.isReadOnly(PTable, connection)?
- if ( table.getType() == PTableType.VIEW &&
table.getViewType().isReadOnly() ) {
+ if ( ( table.getType() == PTableType.VIEW &&
table.getViewType().isReadOnly() )
+ || ( table.isTransactional() && connection.getSCN()
!= null ) ) {
--- End diff --
Let's create a new SQLExceptionCode and throw that rather than a
ReadOnlyTableException for the case of a connection specifying an SCN for a
transactional table.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---