hog 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hog/pig_schema.rb +1 -1
- data/lib/hog/version.rb +1 -1
- metadata +1 -1
data/lib/hog/pig_schema.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Hog
|
2
2
|
class PigSchema
|
3
3
|
def schema(tuple)
|
4
|
-
"\n--\n-- This schema was auto generated by Hog v#{Hog::VERSION}.\n--\n#{tuple.fields.map{|f| "\t#{field(f)}
|
4
|
+
"\n--\n-- This schema was auto generated by Hog v#{Hog::VERSION}.\n--\n-- #{f.opts.to_s}\n#{tuple.fields.map{|f| "\t#{field(f)}" }.join(",\n")}"
|
5
5
|
end
|
6
6
|
|
7
7
|
def field(f)
|
data/lib/hog/version.rb
CHANGED