pypika icon indicating copy to clipboard operation
pypika copied to clipboard

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 us...

Results 190 pypika issues
Sort by recently updated
recently updated
newest added

Hi, I'm trying to build a large SQL statement, but Python keeps shooting out of the play. So, basically, I need to fetch all information for a large number of...

presto, hive, spark all use bracket notation for map access field['foo'] etc

This PR implements the ability to create STRUCT with optional field names, i.e. `STRUCT(expr1 [AS field_name] [, ... ])`. Does not implement typed STRUCT, e.g. `STRUCT` . Partially resolve #591....

Seems the "like" method in Field class doesn't have support for specifying escape character in the following example select * from t where c like 'v\\_%' escape '\\'

Hi, First let me say that I am not a SQL expert so I apologize ahead of time. I went through the unit tests and did not find an example...

I'm trying to create some custom functions and can't quite figure out how to do it in PyPika. For example, MS SQL has geometry/geography types with many methods. [STArea](https://docs.microsoft.com/en-us/sql/t-sql/spatial-geometry/starea-geometry-data-type?view=sql-server-ver15) is...

Maybe it comes from my way of using Query, but here is a simple example to demonstrate: ```python from pypika.queries import Schema, Query table=Schema("schema").table print(Query.from_(table).select(table.notfield)) # outputs: SELECT "notfield" FROM...

Hi, In my SQL Server, I have some fields that have spaces in their names such as "Document Type", having issues in building a query to filter using this fields....

Hi, I checked the [ENUMS](https://github.com/kayak/pypika/blob/2e33a57d549a9c094f0707f51dd2315bf1d428ae/pypika/enums.py) and it seems these would be new features correct? thx