question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre-compilation of operators, which can't be abstracted over in SQL (take, drop, inSet, ...)

See original GitHub issue

Some of our operators do not take Column arguments but ordinary Scala types, because we cannot abstract over these operation in SQL. Examples are take, drop, inSet. This could be solved by either caching multiple variants of SQL or by doing some sort of textual search-replace in the cached SQL.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Reactions:3
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
asheshambastacommented, Mar 6, 2017

We’d also love to see this – and this is one of the biggest things holding us back. Any ETA?

4reactions
virusdavecommented, Oct 6, 2016

Any update on this? It tends to be a really common use case for us (one service will return a set of keys that another service will need to use to do stuff in the DB with), so anything that would let us avoid paying the compile-on-use cost each time would be a big win.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Operators - EXCEPT and INTERSECT (Transact-SQL)
INTERSECT returns distinct rows that are output by both the left and right input queries operator. To combine the result sets of two...
Read more >
Abstract - Generate SQL from Perl data structures - MetaCPAN
Takes a reference to a list of "unary operators" to extend the syntax understood by SQL::Abstract. See section "UNARY OPERATORS" for details. insert($table,...
Read more >
3 Operators, Functions, Expressions, Conditions
Table 3-1 lists the levels of precedence among SQL operators from high to low. ... You cannot use an empty string for to...
Read more >
SQL Keywords Reference - W3Schools
DROP, Deletes a column, constraint, database, index, table, or view ... INSERT INTO SELECT, Copies data from one table into another table.
Read more >
SQL Between Operator overview and examples - SQLShack
This article explores the SQL Between operator to get a range of data along with its usage scenarios.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found