title: Apache Flink Table query result as string values
body: <p>I am writing a query from a flink table api to retrieve a record. Then check if a record was found and if so, get the string value of each of the record's column values. </p>
  
  <p>i.e. </p>
  
  <pre><code>users: 
  |id | name | phone |
  |---|------|-------|
  | 01| sam  | 23354 |
  | 02| jake | 23352 |
  | 03| kim  | 23351 |
  </code></pre>
  
  <p>Issue is that flink only returns Table from a query so i am not able to 1: check if a record was found and 2: get the individual values of the found record's values</p>
  
  <p>sudo code: </p>
  
  <pre><code>foundRecord = find record by phone
    if foundRecord {
      create new instance of Visitor
      Visitor.name = foundRecord.name
      Visitor.id = foundRecord.id
    } else {
      throw exception
    }
  </code></pre>
  
  <p>The code below as recommended by flink docs gives me a table but not sure how to implement the above sudo code since it is returning as another table and i need the actual record values.</p>
  
  <pre><code>Table users = registeredUsers.select("id, name, phone").where("phone === '23354'"));
  </code></pre>
  
  <p>Flink Docs for ref: <a href="https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/tableApi.html#expression-syntax" rel="nofollow noreferrer">https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/tableApi.html#expression-syntax</a></p>