Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G g1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cto
  • g1
  • Issues
  • #139

Closed
Open
Created Jan 24, 2019 by Pratap Vardhan@pratap.vardhanMaintainer

g1.types doesn't detect dates

As per g1.types docs, column d should have been date but it detected as string. Would like to detect below as date.

var data = [
  {a: 1, b: 1.1, c: 'c', d: '2014-04-04', e: true},
  {a: 2, b: 2},
]

g1.types(data)
{a: "number", b: "number", c: "string", d: "string", e: "boolean"}

Although, this works with options = {convert: true}

g1.types(data, {convert: true})
{a: "number", b: "number", c: "string", d: "date", e: "boolean"}

If this is intended, please update the documentation?

Edited Jan 24, 2019 by Pratap Vardhan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking