Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6466

CONNECT engine cannot handle dates far in the future

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.0.12
    • 10.4, 10.5, 10.6
    • None
    • EC2 instance, Amazon Linux AMI, MaraiaDB 10.0.12

    Description

      The CONNECT engine uses a 32-bit date and cannot handle dates greater than 2038-01-19: they wrap around to 1/1/1970.

      Our data warehouse uses date ranging (begin and end dates) to track history, and the "current" data has an end date of 8/8/8888. Unfortunately, when trying to transfer data between instances, these dates are returned as 1/1/1970 (in the previous .11 release, they were 1/1/1969). This is preventing us from using the CONNECT engine.

      create table raw_feed.bad_date (d date);
      insert into raw_feed.bad_date values ('2038-01-20');
      select * from raw_feed.bad_date;
      --> 1/20/2038 12:00:00 AM
       
      CREATE TABLE connectdb.bad_date_local (d date) ENGINE=CONNECT DEFAULT CHARSET=latin1 
      CONNECTION='mysql://_(same instance)_/raw_feed/bad_date' table_type=mysql option_list='password=....';
      select * from connectdb.bad_date_local;
       
      --> 1/1/1970 12:00:00 AM

      Attachments

        Activity

          People

            TheLinuxJedi Andrew Hutchings
            s_weisgarber Scott Weisgarber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.