kayak / pypika

PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.
http://pypika.readthedocs.io/en/latest/
Apache License 2.0
2.43k stars 293 forks source link

fix `Field.__init__` #742

Closed WH-2099 closed 2 months ago

WH-2099 commented 10 months ago

According to the signature of Field.__init__, the argument table can be of type str. Therefore, we should also check the type and ensure that self.table is assigned a Table object.

WH-2099 commented 7 months ago

@AzisK Sorry for the delay. I've finished the test case.

WH-2099 commented 2 months ago

Can anyone else help review this PR? I'm still waiting.