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

[ 问题咨询 ] 数据库无法正常查询 提示脱敏异常 #948

Closed
ZhouMin- opened this issue Oct 29, 2020 · 2 comments
Closed

[ 问题咨询 ] 数据库无法正常查询 提示脱敏异常 #948

ZhouMin- opened this issue Oct 29, 2020 · 2 comments
Labels
question Further information is requested

Comments

@ZhouMin-
Copy link

问题描述

数据库可以正常连接查询无法查询
图片

报错信息:
图片

[2020-10-29 16:17:45,074][DummyThread-7:139798316215880][task_id:default][inception.py:181][INFO]- {'ID': 1, 'statement': 'select * from area limit 100', 'errlevel': 1, 'query_tree': 'None', 'errmsg': "Identifier 'work' is keyword in MySQL.\n"}

[2020-10-29 16:17:45,074][DummyThread-7:139798316215880][task_id:default][inception.py:182][ERROR]- 打印日志: {'ID': 1, 'statement': 'select * from area limit 100', 'errlevel': 1, 'query_tree': 'None', 'errmsg': "Identifier 'work' is keyword in MySQL.\n"}
[2020-10-29 16:17:45,075][DummyThread-7:139798316215880][task_id:default][data_masking.py:37][WARNING]- 数据脱敏异常,错误信息:Traceback (most recent call last):

File "/septnet/data/Archery-1.7.8/sql/utils/data_masking.py", line 32, in data_masking
query_tree = inception_engine.query_print(instance=instance, db_name=db_name, sql=sql)
File "/septnet/data/Archery-1.7.8/sql/engines/inception.py", line 189, in query_print
raise RuntimeError(f"Inception Error: {print_info['errmsg']}")
RuntimeError: Inception Error: Identifier 'work' is keyword in MySQL.

Inception 错误如何解决

版本信息

  • 应用版本/分支:Release v1.7.8
  • 部署方式:手工部署
@ZhouMin- ZhouMin- added the question Further information is requested label Oct 29, 2020
@hhyo
Copy link
Owner

hhyo commented Oct 29, 2020

#145
脱敏是有限的功能,可以配置inception相关参数,或者关闭脱敏校验

@hhyo
Copy link
Owner

hhyo commented Oct 31, 2020

hhyo/inception#12

@hhyo hhyo closed this as completed Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants