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

feat: support bump sql source conf #2937

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

Yisaer
Copy link
Collaborator

@Yisaer Yisaer commented Jun 18, 2024

bump sql source configuration from :

default:
  interval: 10000
  url: mysql://user:test@140.210.204.147/user?parseTime=true
  internalSqlQueryCfg:
    table: test
    limit: 1
    indexField: registerTime
    indexValue: "2022-04-21 10:23:55"
    indexFieldType: "DATETIME"
    dateTimeFormat: "YYYY-MM-dd HH:mm:ss"
  templateSqlQueryCfg:
    TemplateSql: "select * from table where entry_data > {{.entry_data}}"
    indexField: entry_data
    indexValue: "2022-04-13 06:22:32.233"
    indexFieldType: "DATETIME"
    dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"

into

default:
  interval: "10s"
  dburl: mysql://user:test@140.210.204.147/user?parseTime=true
  internalSqlQueryCfg:
    table: test
    limit: 1
    indexFields:
    - indexField: registerTime
      indexValue: "2022-04-21 10:23:55"
      indexFieldType: "DATETIME"
      dateTimeFormat: "YYYY-MM-dd HH:mm:ss"
  templateSqlQueryCfg:
    templateSql: "select * from table where entry_data > {{.entry_data}}"
    indexFields:
    - indexField: entry_data
      indexValue: "2022-04-13 06:22:32.233"
      indexFieldType: "DATETIME"
      dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"

Signed-off-by: Song Gao <disxiaofei@163.com>
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 22.72727% with 51 lines in your changes missing coverage. Please review.

Please upload report for BASE (master-v2@9c9096e). Learn more about missing BASE report.

Current head 8363e5b differs from pull request most recent head 0fe748a

Please upload reports for the commit 0fe748a to get more accurate results.

Files Patch % Lines
internal/server/bump/bump3.go 22.22% 45 Missing and 4 partials ⚠️
internal/server/bump/bump_manager.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master-v2    #2937   +/-   ##
============================================
  Coverage             ?   69.53%           
============================================
  Files                ?      302           
  Lines                ?    29233           
  Branches             ?        0           
============================================
  Hits                 ?    20325           
  Misses               ?     7152           
  Partials             ?     1756           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Song Gao <disxiaofei@163.com>
@Yisaer Yisaer marked this pull request as ready for review June 19, 2024 03:07
@Yisaer Yisaer requested a review from ngjaying June 19, 2024 03:07
@ngjaying ngjaying merged commit df8fe15 into lf-edge:master-v2 Jun 19, 2024
21 checks passed
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.

2 participants