Extract common optimizer tests (#52169)

(cherry picked from commit e5ad72bc22e9ec0686ab582195f0032efcb880bf)
This commit is contained in:
Andrei Stefan 2020-02-12 06:57:12 +02:00 committed by Andrei Stefan
parent edaf6d1f79
commit a21e2b211a
3 changed files with 1301 additions and 1215 deletions

View File

@ -36,6 +36,10 @@ public final class TestUtils {
randomAlphaOfLength(10));
}
public static Literal of(Object value) {
return of(Source.EMPTY, value);
}
/**
* Utility method for creating 'in-line' Literals (out of values instead of expressions).
*/