Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Overwrite limit_clause in TrinoSQLCompiler #37

Merged
merged 4 commits into from
Nov 26, 2021
Merged

Overwrite limit_clause in TrinoSQLCompiler #37

merged 4 commits into from
Nov 26, 2021

Conversation

long2ice
Copy link
Contributor

@dungdm93
Copy link
Owner

dungdm93 commented Nov 25, 2021

@long2ice Thank for your contribution
Would you mind to add a test-cases for this func.

@long2ice
Copy link
Contributor Author

Done

)


def test_limit_offset():
Copy link
Owner

Choose a reason for hiding this comment

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

2 more test cases:

  • select(table).limit(10)
  • select(table).offset(3)

@long2ice
Copy link
Contributor Author

Done

@@ -80,7 +80,18 @@


class TrinoSQLCompiler(compiler.SQLCompiler):
pass
"""
Trino support only OFFSET...LIMIT but not LIMIT...OFFSET syntax.
Copy link
Owner

@dungdm93 dungdm93 Nov 26, 2021

Choose a reason for hiding this comment

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

This should be docstring for method limit_clause, not for class TrinoSQLCompiler

@dungdm93
Copy link
Owner

@long2ice LGTM, but one small comment on docstring.

@long2ice
Copy link
Contributor Author

That's right

@dungdm93 dungdm93 merged commit ee500a2 into dungdm93:master Nov 26, 2021
long2ice referenced this pull request in trinodb/trino-python-client Dec 22, 2021
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.

2 participants