Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-446

CSV adapter should read from directory relative to the model file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      CSV adapter should read from directory relative to the model file.

      The mechanism is as follows. Add a new operand "modelUri", containing the URI of the model file, to each operand passed to a custom schema. If the model's URI is a file (i.e. not "inline:"), also add a new operand "baseDirectory" containing the model's directory, as a File object.

      The CSV adapter uses this information to look for a directory relative to baseDirectory if the directory specified is relative.

      The additional operands are held in the ModelHandler.ExtraOperand enum.

        Activity

        Hide
        julianhyde Julian Hyde added a comment -

        Closing now that 1.0.0-incubating has been released.

        Show
        julianhyde Julian Hyde added a comment - Closing now that 1.0.0-incubating has been released.
        Show
        julianhyde Julian Hyde added a comment - Fixed in Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/8e480759fc25d7a1e10f7f20f9eddc7556beded8 .

          People

          • Assignee:
            julianhyde Julian Hyde
            Reporter:
            julianhyde Julian Hyde
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development