Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/12#discussion_r17771811
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
---
@@ -1532,11 +1519,15 @@ public Void call() throws Exception {
}
try {
metaConnection.createStatement().executeUpdate(QueryConstants.CREATE_SEQUENCE_METADATA);
+
+ // TODO : Get this from a configuration
+
metaConnection.createStatement().executeUpdate(
+
QueryConstants.CREATE_STATS_TABLE_METADATA);
} catch (NewerTableAlreadyExistsException
ignore) {
- // Ignore, as this will happen if the
SYSTEM.SEQUENCE already exists at this fixed timestamp.
+ // Ignore, as this will happen if the
SYSTEM.STATS already exists at this fixed timestamp.
// A TableAlreadyExistsException is not
thrown, since the table only exists *after* this fixed timestamp.
} catch (TableAlreadyExistsException ignore) {
- // This will occur if we have an older
SYSTEM.SEQUENCE, so we need to update it to include
+ // This will occur if we have an older
SYSTEM.STATS, so we need to update it to include
// any new columns we've added.
String newColumns =
--- End diff --
There aren't any new columns since it's a new table, so just remove the
code in the catch block
---
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.
---