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.

Unsupported RowExpression type LambdaDefinitionExpression

See original GitHub issue

Reproducible query:

WITH t AS (
  SELECT * FROM (VALUES (1, 2, 'c', 'd', '2018-11-01')) AS t (a, b, c, d, ds)
)
SELECT label
FROM (
  SELECT IF (p <= q, '1', '0') AS label
  FROM (
      SELECT
        reduce(               
          array_agg(a),
          CAST(Row(0.0, 0.0) AS ROW(field0 DOUBLE, field1 DOUBLE)),
          (s, x) -> CAST(ROW(s.field0, s.field1) AS ROW(field0 DOUBLE, field1 DOUBLE)),
          s -> s.field0 + s.field1
        ) as p,
        reduce(               
          array_agg(a),             
          CAST(Row(0.0, 0.0) AS ROW(field0 DOUBLE, field1 DOUBLE)),
          (s, x) -> CAST(ROW(s.field0, s.field1) AS ROW(field0 DOUBLE, field1 DOUBLE)),
          s -> s.field0 + s.field1
        ) as q
      FROM t
      WHERE ds = '2018-11-01' AND d = 'test' GROUP BY c
   )
WHERE p >= 0.75 AND q >= 0.75)

The query above works if i remove WHERE p >= 0.75 AND q >= 0.75.

I found commit 92b8a88 by bisecting from 0.213.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ggregcommented, Nov 12, 2018

Yes, i was planning to revert the commit. What do you think?

This statement was confusing. My intent was to let @sopel39 (as the author of the commit and someone who has more context about why it was needed) evaluate the impact and discuss if we should revert the commit or fix it. I should have expressed it in a better way 😃.

1reaction
sopel39commented, Nov 12, 2018

Specifically, we don’t yet understand what’s the issue: is that commit bad or did it uncover a latent issue somewhere else?

@martint I think it’s the latter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.facebook.presto.sql.relational ... - Tabnine
Best Java code snippets using com.facebook.presto.sql.relational.SqlToRowExpressionTranslator$Visitor.process (Showing top 20 results out of 315).
Read more >
Example usage for com.google.common.base VerifyException ...
Introduction. In this page you can find the example usage for com.google.common.base VerifyException VerifyException.
Read more >
io.prestosql.spi.type.Type#getTypeParameters
This page shows Java code examples of io.prestosql.spi.type. ... instanceof VarcharType, "Unsupported column type '%s' for map key", typeParameters.get(0)); ...
Read more >
openLooKeng/hetu-core - Gitee.com
private RowExpression toRowExpression(Expression expression, ... throw new UnsupportedOperationException("Unsupported join type: " + node.
Read more >
AbstractTestQueries.java example - Javatips.net
PropertyMetadata; import com.facebook.presto.spi.type. ... IN with subquery predicate in join condition is not supported"); } } assertQuery( ...
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