Skip to content

Instantly share code, notes, and snippets.

@akasper
Created June 13, 2009 18:34
Show Gist options
  • Save akasper/129370 to your computer and use it in GitHub Desktop.
Save akasper/129370 to your computer and use it in GitHub Desktop.
Cannot automatically map column type NilClass to an equivalent Sphinx
type (integer, float, boolean, datetime, string as ordinal). You could try to
explicitly convert the column's value in your define_index block:
has "CAST(column AS INT)", :type => :integer, :as => :column
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/attribute.rb:248:in `translated_type_from_database'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/attribute.rb:148:in `type'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/attribute.rb:113:in `type_to_config'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index.rb:290:in `set_source_attributes'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index.rb:289:in `each'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index.rb:289:in `set_source_attributes'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index.rb:59:in `to_riddle_for_core'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:151:in `to_riddle_for_core'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/rails/activesupport/lib/active_support/inflector.rb:283:in `each_with_index'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:148:in `each'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:148:in `each_with_index'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:148:in `to_riddle_for_core'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:119:in `to_riddle'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:132:in `build'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/rails/activesupport/lib/active_support/inflector.rb:283:in `each_with_index'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:131:in `each'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:131:in `each_with_index'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:131:in `build'
./features/support/hooks.rb:4
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in'
/Users/andrewkasper/Projects/SuperKix/superkix/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/cli/main.rb:81:in `require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/cli/main.rb:79:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/cli/main.rb:79:in `require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/cli/main.rb:34:in `execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/cli/main.rb:20:in `execute'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/rake/task.rb:41:in `run'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.7/lib/cucumber/rake/task.rb:169:in `define_task'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/andrewkasper/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment