-
Notifications
You must be signed in to change notification settings - Fork 74
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
date type between mssql and mysql not working. #186
Comments
Hello, @makkaba
I tested merge_direct feature in the following environment.
in:
type: inline
schema:
- { name: id, type: long }
- { name: string_column, type: string }
- { name: double_column, type: double }
- { name: boolean_column, type: boolean }
- { name: sdate, type: timestamp }
data:
# First data insertion.
- { id: 1, string_column: test, double_column: 0.1, boolean_column: true, sdate: '2016-06-14 15:19:05' }
- { id: 2, string_column: test, double_column: 0.1, boolean_column: true, sdate: '2016-06-14 15:19:05' }
- { id: 3 }
# 2nd data insertion
#- { id: 1, string_column: test, double_column: 0.1, boolean_column: true, sdate: '2016-06-14 15:19:05' }
#- { id: 2, string_column: test, double_column: 0.1, boolean_column: true }
#- { id: 3, string_column: test, double_column: 0.1, boolean_column: true, sdate: '2016-06-14 15:19:05' }
#out: {type: stdout}
out:
type: mysql
host: localhost
user: user
password: password
database: embulk_test
table: merge_direct_test
mode: merge_direct
options: {useUnicode: true, characterEncoding: UTF-8}
create_table_constraint: 'primary key(id)'
column_options:
purchase: {type: date null}
first insert results.
2nd data insert.
|
@hiroyuki-sato |
Hello, @makkaba It worked too. The following test used First insertAfter insert
2nd insertAfter update. I expect to update the following
|
@hiroyuki-sato I have realized something new. In amazon linux ubuntu, it works properly. (it means date value is inserted) But in WSL(Window Subsystem Linux) Ubuntu in my local window machine, It can be WSL problem itself. or some environment problem Is there any factor which affects to convert date type? |
Hello, @makkaba Did you check consistency in both environments? Have you ever executed my test script in your WSL environment? |
@hiroyuki-sato and this is testing in WSL below. test1i have tested your test script in WSL environment. resultsdate field is filled with NULL value. test2chaging the type of sdate with 'date'
result
|
Hello, @makkaba embulk-input-inline doesn't support You need to use You can check the input side with |
Hello, @makkaba @hiroyuki-sato |
hi @hito4t in sqlserver : "sdate" |
@makkaba I'd like to know the actual column names on MySQL. ex)
|
Hello, @makkaba The above report is the And also would you show the result of show variables like '%lower%'; on MySQL client?
|
i appreciate for your investigation. actual column name is
i assumed that it is problem of WSL environment variables or something. |
Hello, @makkaba Thank you for your reply.
|
env
embulk v0.9.23
java openjdk version "1.8.0_252"
situation
(MSSQL)
nullable date type
->
(MYSQL)
nullable date type
issue
destination date columns are filled with NULL value.
even all the source columns have values.
The text was updated successfully, but these errors were encountered: