You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "haridsv (via GitHub)" <gi...@apache.org> on 2023/10/06 07:38:54 UTC
[PR] PHOENIX-7008 Tweaks, fixes and additional test coverage for CREATE CDC [phoenix]
haridsv opened a new pull request, #1703:
URL: https://github.com/apache/phoenix/pull/1703
Jira: [PHOENIX-7008](https://issues.apache.org/jira/browse/PHOENIX-7008)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PHOENIX-7008 Tweaks, fixes and additional test coverage for CREATE CDC [phoenix]
Posted by "virajjasani (via GitHub)" <gi...@apache.org>.
virajjasani commented on code in PR #1703:
URL: https://github.com/apache/phoenix/pull/1703#discussion_r1349376051
##########
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:
##########
@@ -1728,6 +1739,11 @@ public MutationState createCDC(CreateCDCStatement statement) throws SQLException
SortOrder.getDefault()) }));
IndexType indexType = (IndexType) TableProperty.INDEX_TYPE.getValue(tableProps);
ListMultimap<String, Pair<String, Object>> indexProps = ArrayListMultimap.create();
+ if (TableProperty.SALT_BUCKETS.getValue(tableProps) != null) {
+ indexProps.put(QueryConstants.ALL_FAMILY_PROPERTIES_KEY, new Pair<>(
+ TableProperty.SALT_BUCKETS.getPropertyName(),
+ TableProperty.SALT_BUCKETS.getValue(tableProps)));
+ }
Review Comment:
do we also do this for existing indexes? i mean do we need salt buckets for indexes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PHOENIX-7008 Tweaks, fixes and additional test coverage for CREATE CDC [phoenix]
Posted by "virajjasani (via GitHub)" <gi...@apache.org>.
virajjasani commented on code in PR #1703:
URL: https://github.com/apache/phoenix/pull/1703#discussion_r1349376051
##########
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:
##########
@@ -1728,6 +1739,11 @@ public MutationState createCDC(CreateCDCStatement statement) throws SQLException
SortOrder.getDefault()) }));
IndexType indexType = (IndexType) TableProperty.INDEX_TYPE.getValue(tableProps);
ListMultimap<String, Pair<String, Object>> indexProps = ArrayListMultimap.create();
+ if (TableProperty.SALT_BUCKETS.getValue(tableProps) != null) {
+ indexProps.put(QueryConstants.ALL_FAMILY_PROPERTIES_KEY, new Pair<>(
+ TableProperty.SALT_BUCKETS.getPropertyName(),
+ TableProperty.SALT_BUCKETS.getValue(tableProps)));
+ }
Review Comment:
do we also do this for existing indexes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PHOENIX-7008 Tweaks, fixes and additional test coverage for CREATE CDC [phoenix]
Posted by "virajjasani (via GitHub)" <gi...@apache.org>.
virajjasani merged PR #1703:
URL: https://github.com/apache/phoenix/pull/1703
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PHOENIX-7008 Tweaks, fixes and additional test coverage for CREATE CDC [phoenix]
Posted by "virajjasani (via GitHub)" <gi...@apache.org>.
virajjasani commented on code in PR #1703:
URL: https://github.com/apache/phoenix/pull/1703#discussion_r1349455330
##########
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:
##########
@@ -1728,6 +1739,11 @@ public MutationState createCDC(CreateCDCStatement statement) throws SQLException
SortOrder.getDefault()) }));
IndexType indexType = (IndexType) TableProperty.INDEX_TYPE.getValue(tableProps);
ListMultimap<String, Pair<String, Object>> indexProps = ArrayListMultimap.create();
+ if (TableProperty.SALT_BUCKETS.getValue(tableProps) != null) {
+ indexProps.put(QueryConstants.ALL_FAMILY_PROPERTIES_KEY, new Pair<>(
+ TableProperty.SALT_BUCKETS.getPropertyName(),
+ TableProperty.SALT_BUCKETS.getValue(tableProps)));
+ }
Review Comment:
i just revisited the design doc to confirm that we need this option for uncovered index
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org