Skip to content
Snippets Groups Projects
Commit 132ae695 authored by Karin Pettersen's avatar Karin Pettersen
Browse files

Created sql statement in sort

parent 381cad08
No related branches found
No related tags found
No related merge requests found
...@@ -48,9 +48,12 @@ public class Sort { ...@@ -48,9 +48,12 @@ public class Sort {
// Step 2: Prepare query job // Step 2: Prepare query job
// A "QueryJob" is a type of job that executes SQL queries // A "QueryJob" is a type of job that executes SQL queries
// we create a new job configuration from our SQL query and // we create a new job configuration from our SQL query and
final String GET_WORD_COUNT = "SELECT CalculatedStart, CalculatedStop FROM sf-drying-optimization.124.int_dk_valmaticsdryingbatches W" + final String GET_WORD_COUNT = "SELECT InTidTork, UtTidTork FROM sf-drying-optimization.124.int_gs_ds_sipalpackages " +
"HERE Name Like '%Gran%' OR Name LIKE '%2ex%' OR Name LIKE '%47x175%" + "INNER JOIN sf-drying-optimization.124.int_dk_valmaticsdryingbatches ON sf-drying-optimization.124.int_gs_ds_sipalpackages.InTidTork = " +
"AND BETWEEN \"2020-06-09\" AND \"2020-06-29\" ORDER BY TimeStamp"; "sf-drying-optimization.124.int_dk_valmaticsdryingbatches.CalculatedStart"+
"WHERE Name Like '%Gran%' OR Name LIKE '%2ex%' OR Name LIKE '%47x175%" +
"AND BETWEEN \"2021-08-17\" AND \"2020-08-29\" ORDER BY InTidTork"+
"LIMIT 100";
QueryJobConfiguration queryConfig = QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder(GET_WORD_COUNT).build(); QueryJobConfiguration.newBuilder(GET_WORD_COUNT).build();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment