haibow commented on a change in pull request #4774: Refactor virtualColumn to 
extraColumn
URL: https://github.com/apache/incubator-pinot/pull/4774#discussion_r343485436
 
 

 ##########
 File path: 
pinot-core/src/main/java/org/apache/pinot/core/segment/extracolumn/ExtraColumnContext.java
 ##########
 @@ -16,14 +16,28 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.pinot.core.segment.virtualcolumn;
+package org.apache.pinot.core.segment.extracolumn;
+
+import org.apache.pinot.common.data.FieldSpec;
+
 
 /**
- * Virtual column provider that contains the current segment name.
+ * Context used to pass arguments to the extra column provider.
  */
-public class SegmentNameVirtualColumnProvider extends 
SingleStringVirtualColumnProvider {
-  @Override
-  protected String getValue(VirtualColumnContext context) {
-    return context.getSegmentName();
+public class ExtraColumnContext {
 
 Review comment:
   Github somehow misaligned the files.. 
   - 
[VirtualColumnContext](https://github.com/apache/incubator-pinot/blob/master/pinot-core/src/main/java/org/apache/pinot/core/segment/virtualcolumn/VirtualColumnContext.java)
 -> ExtraColumnContext
   - SegmentNameVirtualColumnProvider and HostNameVirtualColumnProvider are 
removed, and merged to SingleStringExtraColumnProvider
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to