You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Rancbar (via GitHub)" <gi...@apache.org> on 2024/02/13 22:18:07 UTC

[I] How to enable the Groovy transform functions for table [pinot]

Rancbar opened a new issue, #12413:
URL: https://github.com/apache/pinot/issues/12413

   First of all, thank you for your invaluable contributions.
   
   
   I am trying to learn Pinot and I am going through the samples you provided but I have been struggling for multiple days only because of the following error in using Groovy transformFunction or filterFunction.
   
   
   > INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs. Invalid TableConfigs: my_table. Groovy transform functions are disabled for table config. Found 'Groovy({bids.max{ it.toBigDecimal() }}, bids)' for column 'maxBid'"}
   
   I added the following lines to my table config but still not working:
   ```
   {
       "tableName": "my_table",
       "tableType": "REALTIME",
       "query" : {
           "disableGroovy": false
       },
       ...
   }
   ```
   
   Please guide me on how to enable it for the table.
   
   
   


-- 
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: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] How to enable the Groovy transform functions for table [pinot]

Posted by "kishoreg (via GitHub)" <gi...@apache.org>.
kishoreg commented on issue #12413:
URL: https://github.com/apache/pinot/issues/12413#issuecomment-1942737933

   https://docs.pinot.apache.org/developers/advanced/ingestion-level-transformations#groovy-functions


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] How to enable the Groovy transform functions for table [pinot]

Posted by "Rancbar (via GitHub)" <gi...@apache.org>.
Rancbar closed issue #12413: How to enable the Groovy transform functions for table
URL: https://github.com/apache/pinot/issues/12413


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] How to enable the Groovy transform functions for table [pinot]

Posted by "Rancbar (via GitHub)" <gi...@apache.org>.
Rancbar commented on issue #12413:
URL: https://github.com/apache/pinot/issues/12413#issuecomment-1943216026

   Thank you @Jackie-Jiang,
   Using this approach I am able to use Groovy functions now.


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] How to enable the Groovy transform functions for table [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #12413:
URL: https://github.com/apache/pinot/issues/12413#issuecomment-1942861879

   @zhtaoxiang How do we add config into docker?
   
   @Rancbar Another way to add this config is to add it into the ClusterConfig using the rest API
   ![Screenshot 2024-02-13 at 3 43 51 PM](https://github.com/apache/pinot/assets/17555551/c0771e70-5271-444a-b41f-0419d221fdc7)
   


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] How to enable the Groovy transform functions for table [pinot]

Posted by "Rancbar (via GitHub)" <gi...@apache.org>.
Rancbar commented on issue #12413:
URL: https://github.com/apache/pinot/issues/12413#issuecomment-1942783990

   Thanks @kishoreg, I forgot to mention I have added the following configuration to the `conf/pinot-controller.conf` too:
   
   `controller.disable.ingestion.groovy=false`


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org