Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-805980: Show Pagination POC at JDBC driver level #1502

Closed
wants to merge 2 commits into from

Conversation

sfc-gh-abakare
Copy link
Collaborator

@sfc-gh-abakare sfc-gh-abakare commented Aug 29, 2023

Overview

THIS IS A POC won't be merged into main.

SNOW-805980

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
    This is an POC for driver level SHOW commands pagination.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

Pre-review checklist

  • This change has passed precommit
  • I have reviewed code coverage report for my PR in (Sonarqube)

@sfc-gh-abakare sfc-gh-abakare requested a review from a team as a code owner August 29, 2023 18:10
@github-actions
Copy link

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

// if no more results are found, now trigger pagination call
// Note: In actuality, instead of show tables command, a pagination call with a token will be invoked here.
// For now, a show command is invoked.
ResultSet resultSet1 = executeAndReturnEmptyResultIfNotFound(statement, "show /* JDBC:DatabaseMetaData.getTables() */ tables in schema \"JDBC_DB1\".\"JDBC_SCHEMA11\" limit 1 from '" + lastTable + "'", GET_TABLES);
Copy link
Collaborator

@sfc-gh-igarish sfc-gh-igarish Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work everytime, if table list change after getting first set of values. Do we have any design doc or something like that? Let's review that before you make code changes. If we don't have any doc, please start a doc first.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to what Ilesh said. It would be great to see a one pager that first outlines what is it that we're trying to achieve and how we're thinking of doing it. Looking at code is great but it does not give the big picture.

@sfc-gh-igarish
Copy link
Collaborator

@sfc-gh-abakare are you still working on it? If not, please close the PR for now.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants