Skip to content

Comments

SAMZA-2234: Passing context to Samza SQL UDFs#1063

Merged
srinipunuru merged 3 commits intoapache:masterfrom
srinipunuru:udf-context.1
Jun 6, 2019
Merged

SAMZA-2234: Passing context to Samza SQL UDFs#1063
srinipunuru merged 3 commits intoapache:masterfrom
srinipunuru:udf-context.1

Conversation

@srinipunuru
Copy link
Contributor

@srinipunuru srinipunuru commented Jun 3, 2019

This change provides ability for the UDFs to access the Samza context. Context is needed by the UDFs for various reasons

  1. To create metrics
  2. To access configs
  3. Access any external contexts

@srinipunuru srinipunuru requested a review from atoomula June 3, 2019 23:17
@srinipunuru srinipunuru changed the title Passing context to Samza SQL UDFs SAMZA-2234: Passing context to Samza SQL UDFs Jun 4, 2019
/**
* This method is used to implement the expressions that takes in columns as input and returns multiple values.
* @param context the context
* @param context SamzaSqlExecution context

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the variable name should be 'sqlContext'
and need to add another param on the next line for regular 'context'

@srinipunuru srinipunuru merged commit 29c0a1c into apache:master Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants