Giter Site home page Giter Site logo

embulk-parser-xml's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

embulk-parser-xml's Issues

Failure in reading timestamp data type

I am using the parser to read an XML file and then use the TD output plugin to send data to Treasure Data. The XML contains a date-time field and I have specified the type as timestamp. It fails with the following error.

2016-02-25 11:08:48.134 -0800 INFO: Deleting bulk import session 'embulk_20160225_190845_067000000'
org.embulk.exec.PartialExecutionException: org.jruby.exceptions.RaiseException: (NameError) undefined local variable or method c' for #<Embulk::Parser::RecordBinder:0xbd273b2> at org.embulk.exec.BulkLoader$LoaderState.buildPartialExecuteException(org/embulk/exec/BulkLoader.java:368) at org.embulk.exec.BulkLoader.doRun(org/embulk/exec/BulkLoader.java:571) at org.embulk.exec.BulkLoader.access$100(org/embulk/exec/BulkLoader.java:33) at org.embulk.exec.BulkLoader$1.run(org/embulk/exec/BulkLoader.java:379) at org.embulk.exec.BulkLoader$1.run(org/embulk/exec/BulkLoader.java:375) at org.embulk.spi.Exec.doWith(org/embulk/spi/Exec.java:25) at org.embulk.exec.BulkLoader.run(org/embulk/exec/BulkLoader.java:375) at org.embulk.EmbulkEmbed.run(org/embulk/EmbulkEmbed.java:179) at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:497) at RUBY.run(/Users/vinayakkarnataki/.embulk/bin/embulk!/embulk/runner.rb:77) at RUBY.run(/Users/vinayakkarnataki/.embulk/bin/embulk!/embulk/command/embulk_run.rb:296) at RUBY.<top>(/Users/vinayakkarnataki/.embulk/bin/embulk!/embulk/command/embulk_main.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:940) at RUBY.(root)(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1) at Users.vinayakkarnataki.$_dot_embulk.bin.embulk.embulk.command.embulk_bundle.<top>(file:/Users/vinayakkarnataki/.embulk/bin/embulk!/embulk/command/embulk_bundle.rb:51) at java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:627) at org.embulk.cli.Main.main(org/embulk/cli/Main.java:23) Caused by: org.jruby.exceptions.RaiseException: (NameError) undefined local variable or methodc' for #Embulk::Parser::RecordBinder:0xbd273b2
at RUBY.convert(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/embulk-parser-xml-0.0.4/lib/embulk/parser/xml.rb:115)
at RUBY.end_element(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/embulk-parser-xml-0.0.4/lib/embulk/parser/xml.rb:89)
at RUBY.end_element_namespace(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/sax/document.rb:127)
at nokogiri.XmlSaxParserContext.parse_with(nokogiri/nokogiri/XmlSaxParserContext.java:252)
at RUBY.parse_memory(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/sax/parser.rb:112)
at RUBY.parse(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/sax/parser.rb:84)
at RUBY.run(/Users/vinayakkarnataki/.embulk/jruby/2.2.0/gems/embulk-parser-xml-0.0.4/lib/embulk/parser/xml.rb:36)
at RUBY.run(/Users/vinayakkarnataki/.embulk/bin/embulk!/embulk/parser_plugin.rb:56)

Error: org.jruby.exceptions.RaiseException: (NameError) undefined local variable or method `c' for #Embulk::Parser::RecordBinder:0xbd273b2

If I change the date_time field to a string, I dont encounter the error but my output plugin expects the data to be timestamp or long.

Vinayak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.