Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to express CONCAT as an extractionFn #1873

Closed
vogievetsky opened this issue Oct 28, 2015 · 0 comments
Closed

Ability to express CONCAT as an extractionFn #1873

vogievetsky opened this issue Oct 28, 2015 · 0 comments
Labels

Comments

@vogievetsky
Copy link
Contributor

This is part of Plywood/PlyQL and is currently being done using javascript

SELECT CONCAT('[', `language`, ']') FROM `wikipedia` GROUP BY 1

I would like to express this:

{
  "type": "javascript",
  "function": "function(str) { return '[' + str + ']'; }",
  "injective": true
}

as

{
  "type": "concat",
  "prefix": "[",
  "postfix": "]"
}

or

{
  "type": "sprintf",
  "expr": "[%s]"
}

or equivalent

@gianm gianm added the Starter label Oct 28, 2015
@fjy fjy closed this as completed in 3459a20 Jan 19, 2016
fjy added a commit that referenced this issue Jan 19, 2016
fixed #1873, add ability to express CONCAT as an extractionFn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants