Skip to content

Conversation

@realknorke
Copy link
Member

@realknorke realknorke commented Jan 7, 2021

replaced almost every occurrence of "presto" with "trino".
README.md migrated, too -- except the Presto book link
changed default version of Trino for integration tests to 351

@cla-bot cla-bot bot added the cla-signed label Jan 7, 2021
@realknorke
Copy link
Member Author

I used the code to execute some queries on our Trino351 cluster. Works.

@realknorke realknorke requested a review from findepi January 7, 2021 09:42
@findepi findepi requested a review from hashhar January 7, 2021 10:40
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up. ❤️

There are some non-rename changes in the same commit. I'd like if you could extract them into a separate commit at the end.

Also, some changes requested.

def test_transaction_multiple(presto_connection_with_transaction):
with presto_connection_with_transaction as connection:
def test_transaction_multiple(trino_connection_with_transaction):
with trino_connection_with_transaction as connection:
Copy link
Member

Choose a reason for hiding this comment

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

Split this change into two commits. One with just the rename and the next one with the refactoring.

Thanks for catching this.

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind about this, I misread the diff.


DEFAULT_PORT = 8080
DEFAULT_SOURCE = "presto-python-client"
DEFAULT_SOURCE = "Trino-python-client"
Copy link
Member

Choose a reason for hiding this comment

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

Is the case change intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed. sharp eyes! :)
thanks

@findepi findepi mentioned this pull request Jan 8, 2021
including: identifier, HTTP-header, imports, tests, documentation, etc. Co-authored-by: Ashhar Hasan <hashhar_dev@outlook.com>
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Would love a second pair of eyes - specifically the HTTP header changes.

@findepi findepi changed the title complete refactoring. Complete transition to Trino Jan 8, 2021
@findepi findepi merged commit bfd1079 into trinodb:master Jan 8, 2021
@findepi
Copy link
Member

findepi commented Jan 8, 2021

Merged, thanks!

@callado4
Copy link

Is there a way to configure the header values? It seems that the sever I'm using is returning headers with the presto value, such as 'X-Presto-Added-Prepare': 'st_...

@ebyhr
Copy link
Member

ebyhr commented Jan 17, 2022

@callado4 I would recommend upgrading your cluster. Trino Python client doesn't provide the way to configure those values.

@hashhar
Copy link
Member

hashhar commented Jan 17, 2022

@callado4 While you upgrade the cluster you can use pip install presto-client==0.302.0 (the last version that works with PrestoSQL) - note that it doesn't have any of the fixes made to trino-python-client over the last year. I also highly recommend to upgrade your cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants