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

got kylinpy.exceptions.KylinQueryError when use Query.first or Query.filter #24

Closed
px4860 opened this issue May 23, 2019 · 1 comment
Closed

Comments

@px4860
Copy link

px4860 commented May 23, 2019

First i got an engine and a session form kylin and create table like this class Date(Base): __table__ = Table('DIM_DATE', metadata, schema='WEB_AD', autoload=True) __mapper_args__ = { 'primary_key': [Table('DIM_DATE', metadata, schema='WEB_AD', autoload=True).c.DATE_KEY] }.When i start a query from this table if i use operator like first() or filter(), i got an error like this kylinpy.exceptions.KylinQueryError: Encountered "= %" at line 3, column 38. Was expecting one of: <EOF> "ORDER" ... "LIMIT" ... "OFFSET" ... "FETCH" ... "GROUP" ...
There are some code i used result = session.query(Date.YEAR,Date.MONTH).filter(Date.DATE_KEY == 20161231).first()

@zhaoyongjie
Copy link
Contributor

sorry, this is a bug, I can fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants