Skip to content

增加datetime 到 date的转换 #135

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

Closed
wants to merge 1 commit into from

Conversation

louieli
Copy link

@louieli louieli commented Sep 12, 2017

add datetime to date cast
example:
42 # MySQL data source
43 [[source]]
44 schema = "db_xguard_websvr"
45 tables = ["t_app_data"]
46
47 [[rule]]
48 schema = "db_xguard_websvr"
49 table = "t_app_data"
50 index = "db_xguard_websvr"
51 type = "t_app_data"
52
53 filter = ["ins_id","module_id","item_key","item_val","item_time"]
54
55 [rule.field]
56 item_time="@timestamp,datetime"

add datetime to date cast
@siddontang
Copy link
Collaborator

Thanks @louieli

Can you add a test for it?

@siddontang
Copy link
Collaborator

Any update? @louieli

@xbloom
Copy link

xbloom commented Sep 27, 2017

this pr miss update case. In line 401, there also need add fieldType condition logic.

@siddontang
Copy link
Collaborator

I guess #143 supports this feature too, can we close it now? @louieli

@louieli
Copy link
Author

louieli commented Oct 16, 2017

see #143

@louieli louieli closed this Oct 16, 2017
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

Successfully merging this pull request may close these issues.

3 participants