TEST_F(SQLiteUtilTests, test_get_query_tables_required) {
  std::string query =
      "SELECT * FROM time, osquery_info, (SELECT * FROM file where path = "
      "'osquery') ff GROUP BY pid";
  std::vector<std::string> tables;
  auto status = getQueryTables(query, tables);
  EXPECT_TRUE(status.ok());

  std::vector<std::string> expected = {"time", "osquery_info", "file"};
  EXPECT_EQ(expected, tables);
}
TEST_F(SQLiteUtilTests, test_get_query_tables_required) {
  std::string query =
      "SELECT * FROM time, osquery_info, (SELECT * FROM file where path = "
      "'osquery') ff GROUP BY pid";
  std::vector<std::string> tables;
  auto status = getQueryTables(query, tables);
  EXPECT_TRUE(status.ok());

  std::vector<std::string> expected = {"time", "osquery_info", "file"};
  EXPECT_EQ(expected, tables);
}