본문 바로가기
Programming/Linux

32bit 서버에 날짜타입 저장하려고 할 때 에러

by 제타 2019. 6. 15.
반응형

mssql polybase로 하둡에 데이터를 떨구려고 할 때 다음과 같은 에러가 나는 경우가 있다.

 

Query aborted-- the maximum reject threshold (0 rows) was reached while reading from an external source: 1 rows rejected out of total 1 rows processed.
Column ordinal: 1, Expected data type: DATETIME2, Offending value: TemporalValue: 347125824000000000 (Column Conversion Error), Error: Error converting from RCFile Type DATETIME2(0) NOT NULL to Sql type Timestamp.

 

원인은 x86서버에서는 날짜를 1970-01-01 00:00:00 ~ 2038-01-19 03:14:08 만 표현할 수 있다고 한다.

즉 1000-01-01같은 날짜는 입력이 되지 않는다. 2038년에는 그럼 어떤 일이 발생할지 두렵다.

 

참고 블로그 - I got to know the problem of Unix time

반응형